Skip to content

Conversation

@wgtmac
Copy link
Member

@wgtmac wgtmac commented Jun 27, 2025

Literal can be used for partition values and default values

@wgtmac wgtmac marked this pull request as ready for review June 27, 2025 04:06
@wgtmac
Copy link
Member Author

wgtmac commented Jun 27, 2025

I've removed std::any and replace them with Literal. Let me know what you think. @zhjwpku @mapleFU

@wgtmac wgtmac changed the title refactor: replace Literal with std::any placeholder refactor: replace std::any placeholder with Literal Jun 27, 2025
@wgtmac
Copy link
Member Author

wgtmac commented Jun 27, 2025

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;
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Collaborator

@zhjwpku zhjwpku left a 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
@Fokko Fokko merged commit 3724aa2 into apache:main Jun 27, 2025
7 checks passed
@Fokko
Copy link
Contributor

Fokko commented Jun 27, 2025

Looks good @wgtmac, thanks for the review @lidavidm, @zhjwpku and @mapleFU

lishuxu pushed a commit to lishuxu/iceberg-cpp that referenced this pull request Jul 5, 2025
Literal can be used for partition values and default values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants