lava-oushudb-dt-sql-parser/test/parser/spark/syntax/fixtures/cache.sql
Frank d1c2920f80
Feat/spark sql auxiliary syntax (#165)
* feat: supplement SparkSQL add syntax unit test

* chore: recompile spark listener & visitor

---------

Co-authored-by: dilu <dilu@dtstack.com>
2023-10-09 09:49:22 +08:00

18 lines
384 B
SQL

-- CACHE LAZY TABLE testCache1 [ OPTIONS ( 'storageLevel' [ = ] value ) ] [ [ AS ] query ]
CACHE TABLE testCache OPTIONS ('storageLevel' 'DISK_ONLY') SELECT * FROM testData;
CACHE LAZY TABLE testCache1 SELECT * FROM testData;
CACHE LAZY TABLE testCache2 AS SELECT * FROM testData;
-- CLEAR CACHE
CLEAR CACHE;
-- UNCACHE TABLE [ IF EXISTS ] table_identifier
UNCACHE TABLE t1;