lava-oushudb-dt-sql-parser/test/parser/spark/syntax/fixtures/optimize.sql
JackWang032 5ce89cb421
feat(spark): support materialized view for spark sql (#262)
* feat(spark): support materialized view for spark sql

* fix(spark): code review update

* fix(spark): update spark  materilized view and zorder grammar

* test(spark): add syntaxSuggestion test of materialized view

---------

Co-authored-by: jialan <jialan@dtstack.com>
2024-02-26 17:25:19 +08:00

7 lines
213 B
SQL

-- OPTIMIZE view_identifier [ WHERE where_expression ] ZORDER BY col1, col2...
OPTIMIZE students ZORDER BY id, name;
OPTIMIZE userDB.students ZORDER BY id, name;
OPTIMIZE students WHERE id=1 ZORDER BY id, name;