Refactor table creation code

This commit is contained in:
Yihao Deng 2024-04-28 08:09:44 +00:00
parent 8954ac5b69
commit 037b394bd6
2 changed files with 6 additions and 3 deletions

View File

@ -22,10 +22,10 @@ create_subtable_clause: {
}
create_definition:
col_name column_type [PRIMARY KEY] [ENCODE 'encode_type'] [COMPRESS 'compress_type'] [LEVEL 'level_type']
col_name column_definition
column_definition:
type_name [comment 'string_value'] [PRIMARY KEY]
type_name [comment 'string_value'] [PRIMARY KEY] [ENCODE 'encode_type'] [COMPRESS 'compress_type'] [LEVEL 'level_type']
table_options:
table_option ...

View File

@ -23,7 +23,10 @@ create_subtable_clause: {
}
create_definition:
col_name column_type [PRIMARY KEY] [ENCODE 'encode_type'] [COMPRESS 'compress_type'] [LEVEL 'level_type']
col_name column_definition
column_definition:
type_name [comment 'string_value'] [PRIMARY KEY] [ENCODE 'encode_type'] [COMPRESS 'compress_type'] [LEVEL 'level_type']
table_options:
table_option ...