Files
greptimedb/tests/cases/standalone/common/function/admin/flush_compact_table.sql
dennis zhuang 63f2463273 feat!: impl admin command (#4600)
* feat: impl admin statement parser

* feat: introduce AsyncFunction and implements it for admin functions

* feat: execute admin functions

* fix: license header

* fix: panic in test

* chore: fixed by code review
2024-08-26 07:53:40 +00:00

17 lines
288 B
SQL

--- test flush_table and compact_table ---
CREATE TABLE test(ts timestamp time index);
INSERT INTO test VALUES (1), (2), (3), (4), (5);
SELECT * FROM test;
ADMIN FLUSH_TABLE('test');
ADMIN COMPACT_TABLE('test');
--- doesn't change anything ---
SELECT * FROM test;
DROP TABLE test;