Repository navigation
ASTLiteral support custom type - #64562
Merged
Merged
Conversation
Member
|
Tests? |
Contributor
Author
done, add unit tests |
Member
|
What does it change for the user? |
Contributor
Author
This change is for gluten, which use clickhouse as native engine for spark. When it pass a date to clickhouse, the date is parsed to int, this may cause an exception. |
Contributor
|
This is an automated comment for commit 8c62bde with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page
Successful checks
|
alexey-milovidov
approved these changes
Jun 3, 2024
Member
|
Needs a comment that the class member and the method are required for Gluten. |
Contributor
Author
done |
liuneng1994
pushed a commit
to apache/gluten
that referenced
this pull request
Jun 7, 2024
What changes were proposed in this pull request? This pr based on ClickHouse/ClickHouse#64562, Type of Literal DateTime32 will be lost during parsing plan of CH as it will be convert to Int16. (Fixes: #5910) How was this patch tested? This patch was tested manually.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Add support for custom type to ASTLiteral, or else the type may be lost when parse the ast. E.g. set a ASTLiteral to DataTime32 with value 19870, then it will be parsed to Int16.