mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-06 21:32:58 +00:00
feat: introduce SKIPPING index (part 1) (#5155)
* skip index parser Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * wip: sqlness Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * impl show create part Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * add empty line Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * change keyword to SKIPPING INDEX Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * rename local variables Signed-off-by: Ruihang Xia <waynestxia@gmail.com> --------- Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
create table
|
||||
skipping_table (
|
||||
ts timestamp time index,
|
||||
id string skipping index,
|
||||
`name` string skipping index
|
||||
with
|
||||
(granularity = 8192),
|
||||
);
|
||||
|
||||
Affected Rows: 0
|
||||
|
||||
show
|
||||
create table
|
||||
skipping_table;
|
||||
|
||||
+----------------+---------------------------------------------------------------------------------+
|
||||
| Table | Create Table |
|
||||
+----------------+---------------------------------------------------------------------------------+
|
||||
| skipping_table | CREATE TABLE IF NOT EXISTS "skipping_table" ( |
|
||||
| | "ts" TIMESTAMP(3) NOT NULL, |
|
||||
| | "id" STRING NULL SKIPPING INDEX WITH(granularity = '10240', type = 'BLOOM'), |
|
||||
| | "name" STRING NULL SKIPPING INDEX WITH(granularity = '8192', type = 'BLOOM'), |
|
||||
| | TIME INDEX ("ts") |
|
||||
| | ) |
|
||||
| | |
|
||||
| | ENGINE=mito |
|
||||
| | |
|
||||
+----------------+---------------------------------------------------------------------------------+
|
||||
|
||||
drop table skipping_table;
|
||||
|
||||
Affected Rows: 0
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
create table
|
||||
skipping_table (
|
||||
ts timestamp time index,
|
||||
id string skipping index,
|
||||
`name` string skipping index
|
||||
with
|
||||
(granularity = 8192),
|
||||
);
|
||||
|
||||
show
|
||||
create table
|
||||
skipping_table;
|
||||
|
||||
drop table skipping_table;
|
||||
Reference in New Issue
Block a user