Files
greptimedb/tests/cases/standalone/common/show/show_region.sql
Weny Xu 9b7b012620 feat: impl show region (#5782)
* fix: fix region follower procedure

* feat: add table related info to region peers table and follower regions

* feat: impl show region

* chore: apply suggestions from CR
2025-03-27 10:41:44 +00:00

34 lines
652 B
SQL

CREATE TABLE my_table (
a INT PRIMARY KEY,
b STRING,
ts TIMESTAMP TIME INDEX,
)
PARTITION ON COLUMNS (a) (
a < 1000,
a >= 1000 AND a < 2000,
a >= 2000
);
CREATE TABLE another_table (
a INT PRIMARY KEY,
b STRING,
ts TIMESTAMP TIME INDEX,
);
-- SQLNESS REPLACE (\d{13}) REGION_ID
-- SQLNESS REPLACE (\d{1}) PEER_ID
SHOW REGION FROM my_table;
-- SQLNESS REPLACE (\d{13}) REGION_ID
-- SQLNESS REPLACE (\d{1}) PEER_ID
SHOW REGION FROM another_table in public;
-- SQLNESS REPLACE (\d{13}) REGION_ID
-- SQLNESS REPLACE (\d{1}) PEER_ID
SHOW REGION FROM another_table WHERE Leader = 'No';
DROP TABLE my_table;
DROP TABLE another_table;