You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
support casts of decimals to ANSI intervals, and follow the SQL standard
Before:
spark-sql>SELECT CAST(1.001002BD AS INTERVAL SECOND);
Error in query: cannot resolve 'CAST(1.001002BD AS INTERVAL SECOND)' due to data type mismatch: cannot cast decimal(7,6) to interval second; line1 pos 7;
After:
spark-sql> SELECT CAST(1.001002BD AS INTERVAL SECOND);
0 00:00:01.001002000
Why changes were needed?
To improve user experience with Spark SQL, and to conform to the SQL standard.
Does this PR introduce any user-facing change?
Yes, improve error message
Why it might affect RAPIDS?
extend the expected behavior of Ansi Casts
Impact on Testing?
Yes
Requires Doc update?
No
The text was updated successfully, but these errors were encountered:
Context
What changes were proposed in SPARK pull request?
support casts of decimals to ANSI intervals, and follow the SQL standard
Before:
After:
Why changes were needed?
To improve user experience with Spark SQL, and to conform to the SQL standard.
Does this PR introduce any user-facing change?
Yes, improve error message
Why it might affect RAPIDS?
extend the expected behavior of Ansi Casts
Impact on Testing?
Yes
Requires Doc update?
No
The text was updated successfully, but these errors were encountered: