d1c2920f80
* feat: supplement SparkSQL add syntax unit test * chore: recompile spark listener & visitor --------- Co-authored-by: dilu <dilu@dtstack.com>
18 lines
384 B
SQL
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;
|