mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-28 00:42:56 +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>
20 lines
471 B
SQL
20 lines
471 B
SQL
-- Migrated from DuckDB test: test/sql/select/test_schema_reference.test
|
|
-- Description: Test schema reference in column reference
|
|
|
|
CREATE SCHEMA s1;
|
|
|
|
CREATE TABLE s1.tbl(i INTEGER, ts TIMESTAMP TIME INDEX);
|
|
|
|
INSERT INTO s1.tbl VALUES (1, 1000), (2, 2000);
|
|
|
|
-- Standard schema reference: schema.table.column
|
|
SELECT s1.tbl.i FROM s1.tbl ORDER BY i;
|
|
|
|
-- Test schema mismatch error - should fail
|
|
SELECT s2.tbl.i FROM s1.tbl;
|
|
|
|
-- Clean up
|
|
DROP TABLE s1.tbl;
|
|
|
|
DROP SCHEMA s1;
|