Files
greptimedb/tests/cases/standalone/common/function/admin/flush_compact_table.sql
dennis zhuang 4b36c285f1 feat: flush or compact table and region functions (#3363)
* feat: adds Requester to process table flush and compaction request

* feat: admin_fn macros for administration functions

* test: add query result

* feat: impl flush_region, flush_table, compact_region, and flush_region functions

* docs: add Arguments to admin_fn macro

* chore: apply suggestion

Co-authored-by: Zhenchi <zhongzc_arch@outlook.com>

* chore: apply suggestion

Co-authored-by: Zhenchi <zhongzc_arch@outlook.com>

* fix: group_requests_by_peer and adds log

* Update src/common/macro/src/admin_fn.rs

Co-authored-by: Ruihang Xia <waynestxia@gmail.com>

* feat: adds todo for spawan thread

* feat: rebase with main

---------

Co-authored-by: Zhenchi <zhongzc_arch@outlook.com>
Co-authored-by: Ruihang Xia <waynestxia@gmail.com>
2024-02-27 08:57:38 +00:00

17 lines
290 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;
SELECT FLUSH_TABLE('test');
SELECT COMPACT_TABLE('test');
--- doesn't change anything ---
SELECT * FROM test;
DROP TABLE test;