diff --git a/parser/sql/dialect/mysql/src/main/antlr4/imports/mysql/DALStatement.g4 b/parser/sql/dialect/mysql/src/main/antlr4/imports/mysql/DALStatement.g4 index 80eb2954d63a1..b7e6f7b6c629d 100644 --- a/parser/sql/dialect/mysql/src/main/antlr4/imports/mysql/DALStatement.g4 +++ b/parser/sql/dialect/mysql/src/main/antlr4/imports/mysql/DALStatement.g4 @@ -335,7 +335,7 @@ vcpuSpec createResourceGroup : CREATE RESOURCE GROUP groupName TYPE EQ_ (SYSTEM | USER) (VCPU EQ_? vcpuSpec (COMMA_ vcpuSpec)*)? - (THREAD_PRIORITY EQ_? NUMBER_)? (ENABLE | DISABLE)? + (THREAD_PRIORITY EQ_? numberLiterals)? (ENABLE | DISABLE)? ; dropResourceGroup diff --git a/parser/sql/dialect/mysql/src/main/antlr4/imports/mysql/DDLStatement.g4 b/parser/sql/dialect/mysql/src/main/antlr4/imports/mysql/DDLStatement.g4 index e9fa1506c4b17..1b85709c796e1 100644 --- a/parser/sql/dialect/mysql/src/main/antlr4/imports/mysql/DDLStatement.g4 +++ b/parser/sql/dialect/mysql/src/main/antlr4/imports/mysql/DDLStatement.g4 @@ -462,6 +462,7 @@ columnAttribute | constraintClause? checkConstraint | constraintEnforcement | visibility + | value = ENGINE_ATTRIBUTE EQ_? jsonAttribute = string_ ; checkConstraint @@ -521,6 +522,7 @@ commonIndexOption : KEY_BLOCK_SIZE EQ_? NUMBER_ | COMMENT stringLiterals | visibility + | ENGINE_ATTRIBUTE EQ_? jsonAttribute = string_ ; visibility diff --git a/test/it/parser/src/main/resources/case/dal/create.xml b/test/it/parser/src/main/resources/case/dal/create.xml index 8830624ff4ef4..d96e28d0e1cbb 100644 --- a/test/it/parser/src/main/resources/case/dal/create.xml +++ b/test/it/parser/src/main/resources/case/dal/create.xml @@ -20,4 +20,7 @@ + + + diff --git a/test/it/parser/src/main/resources/case/ddl/create-index.xml b/test/it/parser/src/main/resources/case/ddl/create-index.xml index fd68b4e8f72f8..7c3c29fb0985e 100644 --- a/test/it/parser/src/main/resources/case/ddl/create-index.xml +++ b/test/it/parser/src/main/resources/case/ddl/create-index.xml @@ -269,4 +269,12 @@ + + + + + +
+ +
diff --git a/test/it/parser/src/main/resources/sql/supported/dal/create.xml b/test/it/parser/src/main/resources/sql/supported/dal/create.xml index 04ad1e597ab76..15da635450dbe 100644 --- a/test/it/parser/src/main/resources/sql/supported/dal/create.xml +++ b/test/it/parser/src/main/resources/sql/supported/dal/create.xml @@ -18,4 +18,5 @@ + diff --git a/test/it/parser/src/main/resources/sql/supported/ddl/create-index.xml b/test/it/parser/src/main/resources/sql/supported/ddl/create-index.xml index abf7d7cf6a9fc..0cf0fa3b044c8 100644 --- a/test/it/parser/src/main/resources/sql/supported/ddl/create-index.xml +++ b/test/it/parser/src/main/resources/sql/supported/ddl/create-index.xml @@ -54,4 +54,5 @@ WITH (FILLFACTOR = 80, PAD_INDEX = ON, DROP_EXISTING = ON);" db-types="SQLServer" /> +