wangyum opened a new pull request #25241: [SPARK-28424][SQL] Support typed 
interval expression
URL: https://github.com/apache/spark/pull/25241
 
 
   ## What changes were proposed in this pull request?
   
   This PR add support typed `interval` expression:
   ```sql
   spark-sql> select interval 'interval 3 year 1 hour';
   interval 3 years 1 hours
   spark-sql>
   ```
   
   Please note that this pr did not add a cast alias for `interval` type like 
[other 
types](https://github.com/apache/spark/blob/2d74f14d74e7b24109f347822600ebf9819b04c1/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala#L529-L541)
 because neither PostgreSQL nor Hive supports this syntax.
   
   ## How was this patch tested?
   
   unit tests
   

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to