24 lines
673 B
SQL
24 lines
673 B
SQL
# name: test/sql/join/test_string_payload.test
|
|
# description: Test join with non-inlined string payload
|
|
# group: [join]
|
|
|
|
statement ok
|
|
pragma verify_external
|
|
|
|
statement ok
|
|
CREATE TABLE test1 (i INT, s1 VARCHAR, s2 VARCHAR)
|
|
|
|
statement ok
|
|
INSERT INTO test1 VALUES (1, 'thisisareallylongstring', 'thisisareallylongstringtoo')
|
|
|
|
statement ok
|
|
CREATE TABLE test2 (i INT, s1 VARCHAR, s2 VARCHAR)
|
|
|
|
statement ok
|
|
INSERT INTO test2 VALUES (1, 'longstringsarecool', 'coolerthanshortstrings')
|
|
|
|
query IIIII
|
|
SELECT t1.i, t1.s1, t1.s2, t2.s1, t2.s2 FROM test1 t1, test2 t2 WHERE t1.i = t2.i
|
|
----
|
|
1 thisisareallylongstring thisisareallylongstringtoo longstringsarecool coolerthanshortstrings
|