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-51404][SQL] Parse the time(n) type as TimeType(n) #50384

Closed
wants to merge 1 commit into from

Conversation

MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented Mar 25, 2025

What changes were proposed in this pull request?

Support parsing time(n) as TimeType(n) in schema JSON or DDL string. It also add tests for parsing "time(n)" in JSON/DDL.

Why are the changes needed?

The changes is required by other parts of Spark SQL to support new data type.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

By running the modified test suite:

$ build/sbt "test:testOnly *DataTypeSuite"

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

No.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@github-actions github-actions bot added the SQL label Mar 25, 2025
@MaxGekk MaxGekk changed the title [WIP][SPARK-51404][SQL] Parse the time(n) type as TimeType(n) [SPARK-51404][SQL] Parse the time(n) type as TimeType(n) Mar 25, 2025
@MaxGekk MaxGekk marked this pull request as ready for review March 25, 2025 13:08
Copy link
Contributor

@LuciferYang LuciferYang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MaxGekk
Copy link
Member Author

MaxGekk commented Mar 25, 2025

Merging to master. Thank you, @LuciferYang for review.

@MaxGekk MaxGekk closed this in 5e2d6f7 Mar 25, 2025
kazemaksOG pushed a commit to kazemaksOG/spark-custom-scheduler that referenced this pull request Mar 27, 2025
### What changes were proposed in this pull request?
Support parsing `time(n)` as `TimeType(n)` in schema JSON or DDL string. It also add tests for parsing "time(n)" in JSON/DDL.

### Why are the changes needed?
The changes is required by other parts of Spark SQL to support new data type.

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

### How was this patch tested?
By running the modified test suite:
```
$ build/sbt "test:testOnly *DataTypeSuite"
```

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

Closes apache#50384 from MaxGekk/time-type-parser.

Authored-by: Max Gekk <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants