mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-13 16:52:56 +00:00
* validate time index col Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * use TableReference instead Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * add more tests Signed-off-by: Ruihang Xia <waynestxia@gmail.com> --------- Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
20 lines
451 B
SQL
20 lines
451 B
SQL
create table "HelloWorld" (a string, b timestamp time index);
|
|
|
|
insert into "HelloWorld" values ("a", 1) ,("b", 2);
|
|
|
|
select count(*) from "HelloWorld";
|
|
|
|
create table test (a string, "BbB" timestamp time index);
|
|
|
|
insert into test values ("c", 1) ;
|
|
|
|
select count(*) from test;
|
|
|
|
select count(*) from (select count(*) from test where a = 'a');
|
|
|
|
select count(*) from (select * from test cross join "HelloWorld");
|
|
|
|
drop table "HelloWorld";
|
|
|
|
drop table test;
|