mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-15 20:40:39 +00:00
* test: migrate duckdb tests Signed-off-by: Dennis Zhuang <killme2008@gmail.com> * fix: style Signed-off-by: Dennis Zhuang <killme2008@gmail.com> * test: add more duckdb tests Signed-off-by: Dennis Zhuang <killme2008@gmail.com> * fix: stable order Signed-off-by: Dennis Zhuang <killme2008@gmail.com> * chore: simplfy comments Signed-off-by: Dennis Zhuang <killme2008@gmail.com> * chore: remove tests/cases/standalone/common/DUCKDB_MIGRATION_GUIDE.md * fix: incorrect_sql.sql Signed-off-by: Dennis Zhuang <killme2008@gmail.com> * fix: integer flow test Signed-off-by: Dennis Zhuang <killme2008@gmail.com> * fix: integer flow test Signed-off-by: Dennis Zhuang <killme2008@gmail.com> * docs: add todo Signed-off-by: Dennis Zhuang <killme2008@gmail.com> --------- Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
18 lines
567 B
SQL
18 lines
567 B
SQL
-- Migrated from DuckDB test: test/sql/keywords/escaped_quotes_expressions.test
|
|
-- Note: Schema names don't support escaped quotes in GreptimeDB
|
|
|
|
CREATE TABLE test_table("COL""UMN" VARCHAR, "NA""ME" VARCHAR, ts TIMESTAMP TIME INDEX);
|
|
|
|
INSERT INTO test_table VALUES ('ALL', 'test', 1000);
|
|
|
|
-- Column references with escaped quotes
|
|
SELECT "COL""UMN" FROM test_table;
|
|
|
|
-- Multiple escaped quote columns
|
|
SELECT "COL""UMN", "NA""ME" FROM test_table;
|
|
|
|
-- Table-qualified references
|
|
SELECT test_table."COL""UMN", test_table."NA""ME" FROM test_table;
|
|
|
|
DROP TABLE test_table;
|