Uh oh!
There was an error while loading. Please reload this page.
[WIP][SPARK-29540][SQL]Support cast StringType to DateType follow ansi - #26208
[WIP][SPARK-29540][SQL]Support cast StringType to DateType follow ansi#26208AngersZhuuuu wants to merge 1 commit into
Conversation
AngersZhuuuu
commented
Oct 22, 2019
Do you know any where I can add test case for this cast? And some different, if i pass a wrong date format, spark will cast it to Spark: PostgresSQL: |
AmplabJenkins
commented
Oct 22, 2019
Can one of the admins verify this patch? |
HyukjinKwon
commented
Oct 22, 2019
gengliangwang
commented
Oct 22, 2019
I think PostgreSQL is making exception for type conversion with constant values. You will get following error: In the PR #26107, I disallow such conversion and update test cases intentionally. |
AngersZhuuuu
commented
Oct 22, 2019
Sounds good to prevent unreasonable conversions. |
gengliangwang
commented
Oct 22, 2019
@AngersZhuuuu Would you mind close this PR? |
AngersZhuuuu
commented
Oct 22, 2019
close it . |
What changes were proposed in this pull request?
Support cast StringType to DateType as PostgresSQL
Why are the changes needed?
Parity feature between PostgreSQL and Spark
Does this PR introduce any user-facing change?
Do SQL Like:
How was this patch tested?
Need add UT