[Feature] add ORDER_BY option for SQLAlchemy when create table in starrocks-python-client/dialect.py (#60596)
This commit is contained in:
parent
64aab8a22f
commit
e6b2adc17b
|
|
@ -241,7 +241,9 @@ class StarRocksDDLCompiler(MySQLDDLCompiler):
|
|||
|
||||
# ToDo - Partition
|
||||
# ToDo - Distribution
|
||||
# ToDo - Order by
|
||||
|
||||
if "ORDER_BY" in opts:
|
||||
table_opts.append(f"ORDER BY ({opts['ORDER_BY']})")
|
||||
|
||||
if "PROPERTIES" in opts:
|
||||
props = ",\n".join([f'\t"{k}"="{v}"' for k, v in opts["PROPERTIES"]])
|
||||
|
|
|
|||
Loading…
Reference in New Issue