Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

Commit 7886ab1

Browse files
committed
feat: influxql support show measurements (#795)
* feat: influxql support show measurements * fix CI
1 parent e078de1 commit 7886ab1

File tree

17 files changed

+110
-19
lines changed

17 files changed

+110
-19
lines changed

integration_tests/cases/common/dml/case_sensitive.result

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,7 @@ DESC `CASE_SENSITIVE_TABLE1`;
9797

9898
Failed to execute query, err: Server(ServerError { code: 500, msg: "Failed to create plan, query: DESC `CASE_SENSITIVE_TABLE1`;. Caused by: Failed to create plan, err:Table not found, table:CASE_SENSITIVE_TABLE1" })
9999

100+
DROP TABLE IF EXISTS case_SENSITIVE_table1;
101+
102+
affected_rows: 0
103+

integration_tests/cases/common/dml/case_sensitive.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,5 @@ DESC CASE_SENSITIVE_TABLE1;
4949
DESC `case_SENSITIVE_table1`;
5050

5151
DESC `CASE_SENSITIVE_TABLE1`;
52+
53+
DROP TABLE IF EXISTS case_SENSITIVE_table1;

integration_tests/cases/common/dml/insert_mode.result

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,7 @@ UInt64(0),Timestamp(2),UInt32(20),String("123"),UInt32(21),UInt32(22),UInt32(4),
201201
UInt64(0),Timestamp(3),UInt32(30),String("123"),UInt32(31),UInt32(32),UInt32(5),
202202

203203

204+
DROP TABLE IF EXISTS `03_dml_insert_mode_table4`;
205+
206+
affected_rows: 0
207+

integration_tests/cases/common/dml/insert_mode.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,5 @@ FROM
131131
ORDER BY
132132
`c1` ASC;
133133

134-
DROP TABLE `03_dml_insert_mode_table4`;
134+
135+
DROP TABLE IF EXISTS `03_dml_insert_mode_table4`;

integration_tests/cases/common/dml/issue-302.result

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
DROP TABLE IF EXISTS issue302;
2+
3+
affected_rows: 0
4+
15
CREATE TABLE `issue302` (`name` string TAG NULL, `value` double NOT NULL, `t` timestamp NOT NULL, TIMESTAMP KEY(t)) ENGINE=Analytic with (enable_ttl='false');
26

37
affected_rows: 0
@@ -12,3 +16,7 @@ issue302.t,COUNT(DISTINCT issue302.name),
1216
Timestamp(1651737067000),Int64(0),
1317

1418

19+
DROP TABLE IF EXISTS issue302;
20+
21+
affected_rows: 0
22+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
DROP TABLE IF EXISTS issue302;
2+
13
CREATE TABLE `issue302` (`name` string TAG NULL, `value` double NOT NULL, `t` timestamp NOT NULL, TIMESTAMP KEY(t)) ENGINE=Analytic with (enable_ttl='false');
24

35
INSERT INTO issue302(t, value) VALUES(1651737067000, 100);
46

57
select `t`, count(distinct name) from issue302 group by `t`;
8+
9+
DROP TABLE IF EXISTS issue302;

integration_tests/cases/common/dml/issue-59.result

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,7 @@ String("logical_plan"),String("Projection: issue59.id + Int64(1), COUNT(DISTINCT
2828
String("physical_plan"),String("ProjectionExec: expr=[issue59.id + Int64(1)@0 as issue59.id + Int64(1), COUNT(DISTINCT issue59.account)@1 as COUNT(DISTINCT issue59.account)]\n ProjectionExec: expr=[group_alias_0@0 as issue59.id + Int64(1), COUNT(alias1)@1 as COUNT(DISTINCT issue59.account)]\n AggregateExec: mode=FinalPartitioned, gby=[group_alias_0@0 as group_alias_0], aggr=[COUNT(alias1)]\n CoalesceBatchesExec: target_batch_size=8192\n RepartitionExec: partitioning=Hash([Column { name: \"group_alias_0\", index: 0 }], 8), input_partitions=8\n AggregateExec: mode=Partial, gby=[group_alias_0@0 as group_alias_0], aggr=[COUNT(alias1)]\n AggregateExec: mode=FinalPartitioned, gby=[group_alias_0@0 as group_alias_0, alias1@1 as alias1], aggr=[]\n CoalesceBatchesExec: target_batch_size=8192\n RepartitionExec: partitioning=Hash([Column { name: \"group_alias_0\", index: 0 }, Column { name: \"alias1\", index: 1 }], 8), input_partitions=8\n AggregateExec: mode=Partial, gby=[CAST(id@0 AS Int64) + 1 as group_alias_0, account@1 as alias1], aggr=[]\n ScanTable: table=issue59, parallelism=8, order=None, \n"),
2929

3030

31+
DROP TABLE IF EXISTS issue59;
32+
33+
affected_rows: 0
34+

integration_tests/cases/common/dml/issue-59.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ GROUP BY id+1;
1616
explain SELECT id+1, count(distinct(account))
1717
FROM issue59
1818
GROUP BY id+1;
19+
20+
DROP TABLE IF EXISTS issue59;

integration_tests/cases/common/dml/issue-637.result

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,11 @@ tsid,t,double_filed,float_filed,str_field,var_field,u64_field,u32_field,u16_fiel
6363
UInt64(0),Timestamp(1651737067000),Double(100.0),Float(100.0),String("s"),Varbinary([118]),UInt64(100),UInt32(100),UInt16(100),UInt8(100),Int64(100),Int32(100),Int16(100),Int8(100),Boolean(false),
6464

6565

66+
DROP TABLE IF EXISTS issue637;
67+
68+
affected_rows: 0
69+
70+
DROP TABLE IF EXISTS issue637_1;
71+
72+
affected_rows: 0
73+

integration_tests/cases/common/dml/issue-637.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,7 @@ VALUES
4646
(1651737067000,100,100,"s","v",100,100,100,100,100,100,100,100,false);
4747

4848
SELECT * FROM `issue637_1`;
49+
50+
DROP TABLE IF EXISTS issue637;
51+
52+
DROP TABLE IF EXISTS issue637_1;

0 commit comments

Comments
 (0)