You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SPARK-56395][SQL][FOLLOWUP] Generalize nullability test to cover the nondeterministic ranking path
Generalize the LEFT OUTER nullability regression test in RewriteNearestByJoinSuite
from an Aggregate-only assertion to a whole-plan integrity walk, and add a
nondeterministic-ranking case alongside the deterministic one across both Inner
and LeftOuter.
The widened ranking reference lands in the Aggregate on the deterministic path but
in a `__ranking__` Project (above the Join) on the nondeterministic path. The old
assertion only inspected Aggregate expressions, so a regression isolated to the
nondeterministic branch would not have been caught. No framework check guards this
class of bug either -- LogicalPlanIntegrity compares types `asNullable` and schemas
via `equalsIgnoreNullability` -- so this test is the only guard.
Verified the new coverage has teeth: reverting just the nondeterministic alias to
the un-widened expression fails the test specifically on LeftOuter/nondeterministic
while the deterministic case still passes.
Co-authored-by: Isaac
0 commit comments