Skip to content

Conversation

@zhoujinsong
Copy link
Contributor

@zhoujinsong zhoujinsong commented Oct 31, 2023

Why are the changes needed?

Close #2223.

Brief change log

  • Cast empty partition data to NULL.
  • Fix some warnings.

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible

  • Add screenshots for manual tests if appropriate

  • Run test locally before making a pull request

Documentation

  • Does this pull request introduce a new feature? (no)
  • If yes, how is the feature documented? (not applicable)

@github-actions github-actions bot added the module:core Core module label Oct 31, 2023
@zhoujinsong
Copy link
Contributor Author

Because Iceberg RollingFileWriter determines the path to create based on whether partition data is empty, it leads to the creation of empty partition paths.

@codecov
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Files Coverage Δ
...ctic/hive/optimizing/MixFormatRewriteExecutor.java 0.00% <0.00%> (ø)
...ease/arctic/optimizing/IcebergRewriteExecutor.java 86.66% <50.00%> (-5.65%) ⬇️

... and 6 files with indirect coverage changes

📢 Thoughts on this report? Let us know!.

@github-actions github-actions bot added the module:mixed-hive Hive moduel for Mixed Format label Oct 31, 2023
@zhoujinsong zhoujinsong requested a review from shidayang November 1, 2023 01:58
Copy link
Contributor

@baiyangtx baiyangtx left a comment

Choose a reason for hiding this comment

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

LGTM

@zhoujinsong zhoujinsong merged commit c8cf318 into apache:master Nov 1, 2023
@zhoujinsong zhoujinsong deleted the fix-optimizing-bug branch November 1, 2023 09:12
ShawHee pushed a commit to ShawHee/arctic that referenced this pull request Dec 29, 2023
… partition directory. (apache#2224)

* Cast empty partition data to NULL to avoid creating empty partition directory

* fix some warnings

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

Labels

module:core Core module module:mixed-hive Hive moduel for Mixed Format

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Optimizing process failed for Iceberg format table on MinIO

2 participants