Skip to content
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

[HUDI-915] Add missing partititonpath to records COW #8666

Merged

Conversation

jonvex
Copy link
Contributor

@jonvex jonvex commented May 8, 2023

Change Logs

In a bootstrapped table, If there was an upsert in a file group, the records in the file group that were not upserted would have null values for their partition column.

Impact

Now works correctly

Risk level (write none, low medium or high below)

Medium
Lots of tests written

Documentation Update

N/A

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

@jonvex jonvex force-pushed the fix_bootstrap_filegroup_update_lost_partition branch from 7510bce to 5d1b90a Compare May 8, 2023 20:39

private static Stream<Arguments> testArgs() {
Stream.Builder<Arguments> b = Stream.builder();
//TODO: add dash partitions false with [HUDI-4944]
Copy link
Member

Choose a reason for hiding this comment

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

please add more details here.
Also, you could try adding a sleep of 2s and check if timeline server returns correct fs view.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  1. fixed
  2. I added a 5 second delay between bootstrapping and the update and was still getting failures at the same rate

Copy link
Member

Choose a reason for hiding this comment

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

Ok let's tackle that issue separately but I don't see more details in the comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed the line below to:
Boolean[] dashPartitions = {true/,false/};

The code is already there to test that, it just doesn't work currently because of the double decoding issue

@jonvex jonvex requested a review from codope May 15, 2023 21:20
Copy link
Member

@codope codope left a comment

Choose a reason for hiding this comment

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

@jonvex Looks in better shape now. Can you refactor merge helper as suggested in the comments?


private static Stream<Arguments> testArgs() {
Stream.Builder<Arguments> b = Stream.builder();
//TODO: add dash partitions false with [HUDI-4944]
Copy link
Member

Choose a reason for hiding this comment

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

Ok let's tackle that issue separately but I don't see more details in the comment.

@jonvex jonvex requested a review from codope May 16, 2023 13:31
@hudi-bot
Copy link

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@codope codope merged commit efc30f6 into apache:master May 17, 2023
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.

3 participants