Skip to content

Fix alias resolution crash in milestoned cross-join projections - #4956

Open
FeruzGS wants to merge 3 commits into
finos:masterfrom
goldmansachs:review-add-tofix-tests
Open

Fix alias resolution crash in milestoned cross-join projections#4956
FeruzGS wants to merge 3 commits into
finos:masterfrom
goldmansachs:review-add-tofix-tests

Conversation

@FeruzGS

@FeruzGS FeruzGS commented Jul 20, 2026

Copy link
Copy Markdown

Problem

buildCorrelatedSubQuery uses object equality to find the parent join-tree node. After reprocessing, alias objects are recreated, causing a toOne() failure.

Fix: Replaced object equality with name-based matching:

Before

filter(n|$n.alias==$newSourceAlias)->toOne()

After

filter(n|$newSourceAlias.name->contains($[n.alias.name](http://n.alias.name/)))->toOne()

Tests added:

testMilestonedMultiHopProjectionWithCrossJoin.pure — reproduces the crash
testAverageDerivedProperty.pure — validates derived property with concatenate + average

@FeruzGS
FeruzGS requested a review from a team as a code owner July 20, 2026 14:23
@github-actions

Copy link
Copy Markdown

Test Results

  1 022 files    1 022 suites   2h 44m 2s ⏱️
16 346 tests 16 175 ✔️ 171 💤 0
36 468 runs  36 297 ✔️ 171 💤 0

Results for commit 633778d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant