Skip to content

fix: Properly compute virtual column chains post-join. - #20538

Merged
gianm merged 1 commit into
apache:masterfrom
gianm:fix-join-vc-chain
Oct 9, 2026
Merged

gianm merged 1 commit into
apache:masterfrom
gianm:fix-join-vc-chain

Conversation

@gianm

@gianm gianm commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Previously, when separating virtual columns into pre- and post-join sets, we would only look one layer deep. This patch changes the logic to look through multiple layers, so chains of virtual columns that depend on post-join inputs are properly moved post-join in their entirety.

Previously, when separating virtual columns into pre- and post-join
sets, we would only look one layer deep. This patch changes the
logic to look through multiple layers, so chains of virtual columns
that depend on post-join inputs are properly moved post-join in
their entirety.
new TableDataSource(CalciteTests.DATASOURCE1),
new LookupDataSource("lookyloo"),
"j0.",
equalsCondition(makeColumnExpression("dim2"), makeColumnExpression("j0.k")),
new TableDataSource(CalciteTests.DATASOURCE1),
new LookupDataSource("lookyloo"),
"j0.",
equalsCondition(makeColumnExpression("dim2"), makeColumnExpression("j0.k")),
@gianm
gianm merged commit b6d638b into apache:master Oct 9, 2026
27 checks passed
@gianm
gianm deleted the fix-join-vc-chain branch October 9, 2026 05:33
@github-actions github-actions Bot added this to the 39.0.0 milestone Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants