AngersZhuuuu opened a new pull request #33717:
URL: https://github.com/apache/spark/pull/33717
### What changes were proposed in this pull request?
Spark support type constructed string as day time interval such as
```
interval '1 day 2 hour'
```
And PGSQL support
```
cast('1 day 2 hour' as interval day)
cast('1 day 2 hour' as interval day to hour)
```
etc, spark can support this too.
### Why are the changes needed?
Support cast same type constructed string as day time interval
### Does this PR introduce _any_ user-facing change?
user can cast such as `1 day 2 hour` string as day time interval
### How was this patch tested?
Added UT
--
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]