sunchao opened a new pull request, #55883:
URL: https://github.com/apache/spark/pull/55883

   ### What changes were proposed in this pull request?
   
   Add a focused Catalyst regression test that constructs builtin `nullif` with 
an unresolved nested field reference while `ALWAYS_INLINE_COMMON_EXPR=true`. 
This reproduces the eager `left.dataType` access that motivated SPARK-56840 and 
guards the fixed construction path directly.
   
   ### Why are the changes needed?
   
   The original SPARK-56840 fix was merged with an end-to-end repro that also 
passes without the fix, so it does not prove the bug boundary. This follow-up 
adds a real negative/positive regression test that fails before commit 
`5949ab30b41` with `Invalid call to dataType on unresolved object` and passes 
with the fix.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   - `build/sbt 'catalyst/testOnly 
org.apache.spark.sql.catalyst.expressions.NullExpressionsSuite -- -z "NullIf 
accepts unresolved nested fields during inlined function construction"'`\n- 
Verified the same focused test fails on pre-fix parent `9ab8e43a940` with 
`UnresolvedException: Invalid call to dataType on unresolved object` and passes 
on current `apache/master`.\n\n### Was this patch authored or co-authored using 
generative AI tooling?\n\nGenerated-by: Codex (GPT-5.5)\n


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to