lava-oushudb-dt-sql-parser/test/parser/spark/syntax/fixtures/cache.sql

18 lines
384 B
MySQL
Raw Normal View History

-- 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;