should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
# name: test/optimizer/column_lifetime_analyzer/must_visit_operator_expressions_first.test
# description: Test column lifetime analyzer
# group: [column_lifetime_analyzer]
statement ok
create table t5 as select (range + 1000) a5, range b5, (range + 50)::INT::VARCHAR || '__suffix__' c5 from range(50);
statement ok
create table t1 as select range::INT a1, (range + 45)::INT b1, (range)::INT::VARCHAR || '__suffix__' c1 from range(900);
query II
select a5, c1 from t1, t5 where b5=b1;
----
1045 0__suffix__
1046 1__suffix__
1047 2__suffix__
1048 3__suffix__
1049 4__suffix__

View File

@@ -0,0 +1,24 @@
# name: test/optimizer/column_lifetime_analyzer/no_unnecessary_projections.test
# description: Test column lifetime
# group: [column_lifetime_analyzer]
statement ok
CREATE TABLE lhs AS SELECT range % 5 i, range j FROM range(100);
statement ok
CREATE TABLE rhs AS SELECT range % 5 i, range j FROM range(10);
query II
explain analyze SELECT rhs.j FROM rhs SEMI JOIN lhs USING (i);
----
analyzed_plan <REGEX>:.*RIGHT_SEMI.*
query II
explain analyze SELECT rhs.j FROM rhs SEMI JOIN lhs USING (i);
----
analyzed_plan <!REGEX>:.*HASH JOIN.*PROJECTION.*
query II
explain analyze SELECT rhs.j FROM rhs ANTI JOIN lhs USING (i);
----
analyzed_plan <!REGEX>:.*HASH JOIN.*PROJECTION.*

View File

@@ -0,0 +1,9 @@
# name: test/optimizer/column_lifetime_analyzer/summary_column_lifetime.test
# description: Test column lifetime analyzer with SUMMARY (internal issue #4138)
# group: [column_lifetime_analyzer]
statement ok
create table data as select * from range(0,4000) tbl(col);
statement ok
SELECT * FROM summary((SELECT col FROM data ORDER BY col));