Mryange opened a new pull request, #69616:
URL: https://github.com/apache/doris/pull/69616

   [fix](join) Preserve input nullability for ASOF match conditions
   
   ### What problem does this PR solve?
   
   Issue Number: N/A
   
   Related PR: N/A
   
   Problem Summary: The final `AdjustNullable` pass rewrites other join 
conjuncts using join output slots. For outer ASOF joins, the sole other 
conjunct is the match condition, which BE evaluates on child input blocks 
before null padding. This can make an input NOT NULL slot nullable only in the 
FE expression and cause a nullable column shape mismatch during build-key 
evaluation. Keep ASOF match conditions tied to child input nullability while 
retaining the existing rule for other joins.
   
   ### Release note
   
   ASOF JOIN planning preserves child input nullability in match conditions, 
preventing nullable column shape mismatches during build-key evaluation.
   
   ### Check List (For Author)
   
   - Test: Focused FE unit coverage added; not run.
       - Regression test / Unit Test / Manual test / No need to test (with 
reason)
   - Behavior changed: Yes. ASOF match conditions retain child input 
nullability.
   - Does this need documentation: No
   


-- 
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