diff --git a/e2e_test/streaming/unaligned-join.slt b/e2e_test/streaming/unaligned-join.slt new file mode 100644 index 0000000000000..7894f3b9cd0e8 --- /dev/null +++ b/e2e_test/streaming/unaligned-join.slt @@ -0,0 +1,47 @@ +statement ok +DROP TABLE IF EXISTS fact; + +statement ok +DROP TABLE IF EXISTS dim; + +statement ok +set streaming_unaligned_join = true; + +statement ok +create table fact(v0 int primary key, v1 int, v2 varchar, v3 varchar); + +statement ok +INSERT INTO fact + SELECT + x as v0, + 1 as v1, + 'abcdefgakjandjkw' as v2, + 'jkb1ku1bu' as v3 + FROM generate_series(1, 100) t(x); + +statement ok +INSERT INTO fact + SELECT + x as v0, + 2 as v1, + 'abcdefgakjandjkw' as v2, + 'jkb1ku1bu' as v3 + FROM generate_series(101, 200) t(x); + +statement ok +create table dim(v1 int); + +statement ok +INSERT INTO dim VALUES(1), (2); + +statement ok +create materialized view m1 as + select fact.v1, v2, v3, count(v0) + from fact join dim on fact.v1 = dim.v1 + group by v1, v2, v3; + +# statement ok +# DELETE FROM dim; + +statement ok +flush; \ No newline at end of file