-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-28429][SQL] Support implicit cast string type to interval type in PromoteStrings #25190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Test build #107836 has finished for PR 25190 at commit
|
|
Test build #107844 has finished for PR 25190 at commit
|
|
In postgresql, is this handled as implicit casts? I checked a cast list in postgresql though, I couldn't find an entry, text -> interval, for implicit casts; In postgresql, it seems |
|
Hi, @wangyum .
|
|
Yes. We still need this fix. But I'm not sure how PostgreSQL support this feature. |
|
Test build #108328 has finished for PR 25190 at commit
|
|
PostgreSQL supports conversions from a string literal to any data type (e.g., text->interval), but IIUC it doesn't support implicit casts from text-typed data in a relation; |
What changes were proposed in this pull request?
PostgreSQL support implicit cast string type to interval type when adding timestamp type with string type:
This pr add this feature.
Teradata, Oracle, DB2, Presto, MariaDB and MySQL does not support this syntax, PostgreSQL and Vertica support this syntax:
How was this patch tested?
unit tests