lava-oushudb-dt-sql-parser/test/parser/spark/syntax/fixtures/refresh.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

24 lines
357 B
SQL

-- REFRESH resource_path
REFRESH "hdfs://path/to/table";
-- REFRESH FUNCTION function_identifier
REFRESH FUNCTION func1;
REFRESH FUNCTION db1.func1;
-- REFRESH [TABLE] table_identifier
REFRESH TABLE tbl1;
REFRESH TABLE tempDB.view1;
-- REFRESH MATERIALIZED VIEW view_identifier
REFRESH MATERIALIZED VIEW mv;
REFRESH MATERIALIZED VIEW userDB.mv;