Skip to content

Conversation

@ahmedabu98
Copy link
Contributor

Previously we were manually doing conversions to determine a record's partition. We recently found that Iceberg has existing public utils that do this; this change switches to use those utils.

Fixes #32865

@ahmedabu98
Copy link
Contributor Author

assign set of reviewers

@github-actions
Copy link
Contributor

Assigning reviewers. If you would like to opt out of this review, comment assign to next reviewer:

R: @m-trieu for label java.
R: @Abacn for label build.
R: @Abacn for label io.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

@svetakvsundhar svetakvsundhar self-assigned this Jan 21, 2025
@svetakvsundhar svetakvsundhar self-requested a review January 21, 2025 21:23
@svetakvsundhar svetakvsundhar removed their assignment Jan 21, 2025
.identity("float")
.identity("double")
.identity("str")
.identity("date")
Copy link
Contributor

Choose a reason for hiding this comment

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

for my knowledge, it's unclear to me how testIdentityPartitioning() was passing when identity should support Any source type. Is it worth adding an integration test to ensure just the Write works when partitioning by just date, as well as Any?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test used to not include date and the other time types. This PR adds adds them to the test (your comment is actually positioned on the lines that add them).

@ahmedabu98 ahmedabu98 merged commit fa0152b into apache:master Jan 23, 2025
22 checks passed
VardhanThigle pushed a commit to VardhanThigle/beam that referenced this pull request Mar 21, 2025
* Use Iceberg InternalRecordWrapper partition util

* add test

* spotless
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: IcebergIO cannot write data into an hourly partitioned table

2 participants