Files
greptimedb/tests/cases/standalone/common/create/upper_case_table_name.sql
Ruihang Xia 3544c9334c feat!: new partition grammar - parser part (#3347)
* parser part

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* fix test in sql

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* comment out and ignore some logic

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* update sqlness cases

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* update region migration test

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* temporary disable region migration test

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* allow dead code

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* update integration test

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
2024-02-27 07:20:16 +00:00

44 lines
926 B
SQL

create database upper_case_table_name;
use upper_case_table_name;
create table "system_Metric"(ts timestamp time index);
insert into "system_Metric" values (0), (1);
select * from system_Metric;
select * from "system_Metric";
drop table "system_Metric";
create table "AbCdEfG"("CoLA" string, "cOlB" string, "tS" timestamp time index, primary key ("CoLA"));
desc table "AbCdEfG";
-- unquoted table name and column name.
create table AbCdEfGe(CoLA string, cOlB string, tS timestamp time index, primary key (cOlA));
desc table aBcDeFgE;
drop table "AbCdEfG";
drop table aBcDeFgE;
-- unquoted column name in partition
create table AbCdEfGe(
CoLA string PRIMARY KEY,
tS timestamp time index
) PARTITION ON COLUMNS (cOlA) ();
drop table abcdefge;
-- unquoted column name in TIME INDEX
create table AbCdEfGe(CoLA string, tS timestamp, TIME INDEX (Ts));
desc table abcdefge;
drop table abcdefge;
use public;