Skip to content

Commit

Permalink
Add basic test cases duckdb#116
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-XM-Zeng committed Dec 20, 2024
1 parent eb2c6bb commit dc70f68
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/regression/expected/basic.out
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,23 @@ SELECT * FROM t JOIN s ON a = b;

DROP TABLE t;
DROP TABLE s;
CREATE TABLE a (b int);
CREATE TABLE "A"(c int);
INSERT INTO a VALUES(1);
SET duckdb.force_execution = false;
SELECT * FROM a, "A" as aa;
b | c
---+---
(0 rows)

SET duckdb.force_execution = true;
SELECT * FROM a, "A" as aa;
WARNING: (PGDuckDB/CreatePlan) Prepared query returned an error: 'Binder Error: Table "aa" does not have a column named "c"
LINE 1: SELECT a.b, aa.c FROM pgduckdb.public.a, pgduckdb.p...
^
b | c
---+---
(0 rows)

DROP TABLE a;
DROP TABLE "A";
10 changes: 10 additions & 0 deletions test/regression/sql/basic.sql
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,13 @@ CREATE TABLE s (b INT);
SELECT * FROM t JOIN s ON a = b;
DROP TABLE t;
DROP TABLE s;

CREATE TABLE a (b int);
CREATE TABLE "A"(c int);
INSERT INTO a VALUES(1);
SET duckdb.force_execution = false;
SELECT * FROM a, "A" as aa;
SET duckdb.force_execution = true;
SELECT * FROM a, "A" as aa;
DROP TABLE a;
DROP TABLE "A";

0 comments on commit dc70f68

Please sign in to comment.