-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-29448][SQL] Support the INTERVAL type by Parquet datasource
#26102
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
Closed
Closed
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
1c64fb1
Support the interval type in schemas
MaxGekk 0769585
Support the interval type in ColumnarBatchRow
MaxGekk cfcecf1
Fix imports
MaxGekk c7889ed
Support writing and reading intervals
MaxGekk 4563a4e
Remove unused variable
MaxGekk 83b4bf2
Fix coding style
MaxGekk 81ef7be
Exclude parquet from checking
MaxGekk de0872e
Exclude parquet from checks of unsupported interval
MaxGekk 281f62b
Combine AtomicType and CalendarIntervalType in supportDataType()
MaxGekk 232b1fb
Replace timestampBuffer and intervalBuffer by reusableBuffer
MaxGekk 3f6ad61
Move unsupported type check to checkUnsupportedTypes()
MaxGekk c260622
Add more tests to ParquetQuerySuite
MaxGekk 8fd037b
Merge remote-tracking branch 'origin/master' into parquet-interval
MaxGekk 032a2ea
CalendarInterval.fromString -> IntervalUtils.fromString
MaxGekk 6834f1e
Merge remote-tracking branch 'remotes/origin/master' into parquet-int…
MaxGekk 712378c
Rebase on new field - days
MaxGekk cf8023a
Add one more test
MaxGekk 8fa4a0d
Merge remote-tracking branch 'remotes/origin/master' into parquet-int…
MaxGekk 9041110
Rebase on the master
MaxGekk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do this change after we officially make
CalendarIntervalTypepublic. i.e. move it to a public package.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering what's the relation between this PR and opening
CalendarIntervalType? AnINTERVALcolumn could appear as the result of subtraction of 2 datetime columns, and an user may want to store it into fs.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interval type is kind of an internal type for now. It's a big decision if we can read/write it from/to data sources.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and Python and R needs a proper conversion for both to read and write as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How are Python and R involved into read/write in parquet?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For instance, if Scala API saves interval types:
df.write.parquet("...")and Python reads it.
There's no way to map it in Python side via
collect. In case of Date type, it's mapped todate.dateinstance in Python.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We gotta make it all supported before exposing it all related interval ones (see #25022 (comment))