From 59fcc5fdbdf571954e3d6373f80f627e59a74fe8 Mon Sep 17 00:00:00 2001 From: Paoer Date: Sun, 24 Sep 2023 15:33:38 +0800 Subject: [PATCH] feat:migrate slect tests from duckDB --- .../select/multi_column_reference.result | 22 +++++++++++++++++++ .../common/select/multi_column_reference.sql | 7 ++++++ 2 files changed, 29 insertions(+) create mode 100644 tests/cases/standalone/common/select/multi_column_reference.result create mode 100644 tests/cases/standalone/common/select/multi_column_reference.sql diff --git a/tests/cases/standalone/common/select/multi_column_reference.result b/tests/cases/standalone/common/select/multi_column_reference.result new file mode 100644 index 000000000000..2b5af4c43e98 --- /dev/null +++ b/tests/cases/standalone/common/select/multi_column_reference.result @@ -0,0 +1,22 @@ +create schema test; + +Affected Rows: 1 + +create table test.tbl(a int, b timestamp time index); + +Affected Rows: 0 + +insert into test.tbl values (1,1), (2,2), (3,3); + +Affected Rows: 3 + +select test.tbl.a from test.tbl; + ++---+ +| a | ++---+ +| 1 | +| 2 | +| 3 | ++---+ + diff --git a/tests/cases/standalone/common/select/multi_column_reference.sql b/tests/cases/standalone/common/select/multi_column_reference.sql new file mode 100644 index 000000000000..40d43cc8af4e --- /dev/null +++ b/tests/cases/standalone/common/select/multi_column_reference.sql @@ -0,0 +1,7 @@ +create schema test; + +create table test.tbl(a int, b timestamp time index); + +insert into test.tbl values (1,1), (2,2), (3,3); + +select test.tbl.a from test.tbl;