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

   ### What changes were proposed in this pull request?
   
   This PR makes it cast the result type of string +/- interval to timestamp 
type instead of string type.
   
   ### Why are the changes needed?
   
   The result should be `true`. Otherwise, users will be confused:
   ```sql
   select '2023-01-01' >= '2023-01-08' - interval '7' day;
   ```
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   This PR changed the result type.
   
   ### How was this patch tested?
   
   Unit test.


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