cloud-fan commented on pull request #32940:
URL: https://github.com/apache/spark/pull/32940#issuecomment-866553421


   
![image](https://user-images.githubusercontent.com/3182036/123043608-20912f00-d42b-11eb-9df8-054ad5ca30eb.png)
   
   Let's follow ANSI first and make it super strict for now: `interval '1-1' 
year` and `interval '1-1' month` should both fail. We can be more flexible 
later if there are user requests.
   
   According to ANSI, CAST string to interval should follow the literal rule
   
![image](https://user-images.githubusercontent.com/3182036/123043861-7f56a880-d42b-11eb-913f-c2c2eeb1b86e.png)
   


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

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