Skip to content
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

[SPARK-45433][SQL][3.4] Fix CSV/JSON schema inference when timestamps do not match specified timestampFormat #43343

Conversation

Hisoka-X
Copy link
Member

What changes were proposed in this pull request?

This is a backport PR of #43243. Fix the bug of schema inference when timestamps do not match specified timestampFormat. Please check #43243 for detail.

Why are the changes needed?

Fix schema inference bug on 3.4.

Does this PR introduce any user-facing change?

No

How was this patch tested?

add new test.

Was this patch authored or co-authored using generative AI tooling?

@Hisoka-X
Copy link
Member Author

cc @MaxGekk

@github-actions github-actions bot added the SQL label Oct 12, 2023
@MaxGekk
Copy link
Member

MaxGekk commented Oct 12, 2023

+1, LGTM. Merging to master.
Thank you, @Hisoka-X.

MaxGekk pushed a commit that referenced this pull request Oct 12, 2023
… do not match specified timestampFormat

### What changes were proposed in this pull request?
This is a backport PR of #43243. Fix the bug of schema inference when timestamps do not match specified timestampFormat. Please check #43243 for detail.

### Why are the changes needed?
Fix schema inference bug on 3.4.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
add new test.

### Was this patch authored or co-authored using generative AI tooling?

Closes #43343 from Hisoka-X/backport-SPARK-45433-inference-schema.

Authored-by: Jia Fan <fanjiaeminem@qq.com>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
@MaxGekk MaxGekk closed this Oct 12, 2023
@Hisoka-X Hisoka-X deleted the backport-SPARK-45433-inference-schema branch October 13, 2023 11:46
viirya pushed a commit to viirya/spark-1 that referenced this pull request Oct 19, 2023
… do not match specified timestampFormat

### What changes were proposed in this pull request?
This is a backport PR of apache#43243. Fix the bug of schema inference when timestamps do not match specified timestampFormat. Please check apache#43243 for detail.

### Why are the changes needed?
Fix schema inference bug on 3.4.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
add new test.

### Was this patch authored or co-authored using generative AI tooling?

Closes apache#43343 from Hisoka-X/backport-SPARK-45433-inference-schema.

Authored-by: Jia Fan <fanjiaeminem@qq.com>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants