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:
Ruihang Xia
2024-12-16 17:21:00 +08:00
committed by GitHub
parent 5ffda7e971
commit 54698325b6
14 changed files with 371 additions and 21 deletions

View File

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

View File

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