Skip to content

Commit aee5cbd

Browse files
committed
Fix test error
1 parent 4a6005c commit aee5cbd

File tree

2 files changed

+228
-256
lines changed

2 files changed

+228
-256
lines changed

sql/core/src/test/resources/sql-tests/inputs/postgreSQL/join.sql

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -577,15 +577,15 @@ select count(*) from tenk1 a, tenk1 b
577577
-- regression test for 8.2 bug with improper re-ordering of left joins
578578
--
579579

580-
DROP TABLE IF EXISTS tt3;
581-
CREATE TABLE tt3(f1 int, f2 string) USING parquet;
582-
INSERT INTO tt3 SELECT x.id, repeat('xyzzy', 100) FROM range(1,10001) x;
580+
create or replace temporary view tt3 as select * from
581+
(SELECT cast(x.id as int), repeat('xyzzy', 100) FROM range(1,10001) x)
582+
as v(f1, f2);
583583
-- create index tt3i on tt3(f1);
584584
-- analyze tt3;
585585

586-
DROP TABLE IF EXISTS tt4;
587-
CREATE TABLE tt4(f1 int) USING parquet;
588-
INSERT INTO tt4 VALUES (0),(1),(9999);
586+
create or replace temporary view tt4 as select * from
587+
(values (0), (1), (9999))
588+
as v(f1);
589589
-- analyze tt4;
590590

591591
SELECT a.f1

0 commit comments

Comments
 (0)