0c68578fa9
### What changes were proposed in this pull request? Current string to interval cast logic does not support i.e. cast('.111 second' as interval) which will fail in SIGN state and return null, actually, it is 00:00:00.111. ```scala -- !query 63 select interval '.111 seconds' -- !query 63 schema struct<0.111 seconds:interval> -- !query 63 output 0.111 seconds -- !query 64 select cast('.111 seconds' as interval) -- !query 64 schema struct<CAST(.111 seconds AS INTERVAL):interval> -- !query 64 output NULL ```` ### Why are the changes needed? bug fix. ### Does this PR introduce any user-facing change? no ### How was this patch tested? add ut Closes #26514 from yaooqinn/SPARK-29888. Authored-by: Kent Yao <yaooqinn@hotmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> |
||
---|---|---|
.. | ||
main | ||
test |