SEPURI-SAI-KRISHNA commented on PR #59135:
URL: https://github.com/apache/spark/pull/59135#issuecomment-7060484319

   @MaxGekk thanks for the review. The context and the migration note are 
addressed inline.
   
   On `unwrapDateToTimestamp`: this already fails before this PR. For a `DATE` 
literal outside the `TIMESTAMP` range, the rule casts the literal (or literal + 
1 day) to `TIMESTAMP`, which throws `long overflow`. For example, `CAST(ts AS 
DATE) < DATE'+300000-01-01'` fails with every operator, ANSI on or off, and 
passes when the rule is excluded. The only change here is that `<=` / `>` at 
the max `DATE` now fail with `DATETIME_OVERFLOW` instead of `long overflow`.
   
   I'd rather fix it separately in the rule. I can open a JIRA and a PR if that 
works for you.
   


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