Skip to content

Conversation

@alexeykudinkin
Copy link
Contributor

Tips

What is the purpose of the pull request

Addresses NPE in ParquetUtils not handling null min/max statistics

Brief change log

  • Addressed NPE
  • Tidying up

Verify this pull request

This pull request is already covered by existing tests, such as (please describe tests).

Committer checklist

  • Has a corresponding JIRA in PR title & commit

  • Commit message is descriptive of the change

  • CI is green

  • Necessary doc changes done or have another open PR

  • For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

@alexeykudinkin alexeykudinkin changed the title [HUDI-3684] Fixing NPE in ParquetUtils [HUDI-3684] Fixing NPE in ParquetUtils Mar 23, 2022
.stream().filter(Objects::nonNull).min(Comparator.naturalOrder()).orElse(null),
(Comparable) Arrays.asList(oldColumnRange.getMinValue(), newColumnRange.getMinValue())
.stream().filter(Objects::nonNull).max(Comparator.naturalOrder()).orElse(null),
(Comparable) Stream.of(oldColumnRange.getMinValue(), newColumnRange.getMinValue())
Copy link
Member

Choose a reason for hiding this comment

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

Good catch! We should replace Arrays.asList by Stream if there are other such places.

@hudi-bot
Copy link
Collaborator

CI report:

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

@codope codope merged commit ccc3728 into apache:master Mar 24, 2022
vingov pushed a commit to vingov/hudi that referenced this pull request Apr 3, 2022
* Make sure nulls are properly handled in `HoodieColumnRangeMetadata`
stayrascal pushed a commit to stayrascal/hudi that referenced this pull request Apr 12, 2022
* Make sure nulls are properly handled in `HoodieColumnRangeMetadata`
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