kumarUjjawal commented on issue #19527:
URL: https://github.com/apache/datafusion/issues/19527#issuecomment-3717928245

   The approach of coercing Date→Timestamp in type coercion conflicts with Date 
+ Integer coercion. 
   
   First pass: Date + 7 → temporal_math_coercion → returns Date (correct)
   CastExpr inserted: Integer cast to Interval
   Later calls to `data_type()`: `BinaryExpr` sees children as Date + Interval 
→ triggers our coercion → returns Timestamp(wrong!)
   


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