[SPARK-28429][SQL] Support implicit cast string type to interval type in PromoteStrings#25190
[SPARK-28429][SQL] Support implicit cast string type to interval type in PromoteStrings#25190wangyum wants to merge 4 commits intoapache:masterfrom wangyum:SPARK-28429
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