[Feature] add ORDER_BY option for SQLAlchemy when create table in starrocks-python-client/dialect.py (#60596)

This commit is contained in:
lang07123 2025-08-07 10:09:27 +08:00 committed by GitHub
parent 64aab8a22f
commit e6b2adc17b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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"]])