-
Notifications
You must be signed in to change notification settings - Fork 70
refactor: replace std::any placeholder with Literal #130
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
Conversation
|
CI failure is unrelated (downloading thrift dependency timed out) |
| /// TODO(zhjwpku): use StructLike to represent partition data tuple | ||
| std::any partition; | ||
| /// field ids | ||
| std::vector<Literal> partition; |
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.
This is ok to me, and should we extract a Literals or StructLike type using Vector<Literal>, or just leave it here?
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.
I think we can add an optimized data structure for single value partition later or simply add something like https://github.com/apache/arrow/blob/main/cpp/src/arrow/util/small_vector.h
zhjwpku
left a comment
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.
LGTM, thanks
Literal can be used for partition value and default value
Literal can be used for partition values and default values
Literal can be used for partition values and default values