Skip to content

refactor: remove HoodieWriteConfig.getOrcCompressionCodec() function#18422

Merged
danny0405 merged 1 commit intoapache:masterfrom
skywalker0618:shihuanl/remove_orc_dependency_hudi_1_2
Mar 31, 2026
Merged

refactor: remove HoodieWriteConfig.getOrcCompressionCodec() function#18422
danny0405 merged 1 commit intoapache:masterfrom
skywalker0618:shihuanl/remove_orc_dependency_hudi_1_2

Conversation

@skywalker0618
Copy link
Copy Markdown
Contributor

@skywalker0618 skywalker0618 commented Mar 30, 2026

Describe the issue this Pull Request addresses

Current hudi 1.2 streaming source has a hard dependency on orc due to function HoodieWriteConfig.getOrcCompressionCodec() returns an ORC class. As this function is not used, we can safely remove it so that the hudi 1.2 won't have a hard dependency on orc.

Fixes #18397

Summary and Changelog

Remove HoodieWriteConfig.getOrcCompressionCodec() function

Impact

None

Risk Level

None

Documentation Update

None

Contributor's checklist

  • Read through contributor's guide
  • Enough context is provided in the sections above
  • Adequate tests were added if applicable

@github-actions github-actions bot added the size:XS PR with lines of changes in <= 10 label Mar 30, 2026
@skywalker0618 skywalker0618 changed the title Remove HoodieWriteConfig.getOrcCompressionCodec() function refactor: remove HoodieWriteConfig.getOrcCompressionCodec() function Mar 30, 2026
@hudi-bot
Copy link
Copy Markdown
Collaborator

CI report:

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

@danny0405 danny0405 merged commit dd8fe99 into apache:master Mar 31, 2026
56 of 58 checks passed
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.25%. Comparing base (1ff0506) to head (1e84c1d).
⚠️ Report is 20 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #18422      +/-   ##
============================================
- Coverage     68.26%   68.25%   -0.01%     
+ Complexity    27761    27760       -1     
============================================
  Files          2439     2439              
  Lines        134355   134354       -1     
  Branches      16210    16210              
============================================
- Hits          91715    91709       -6     
- Misses        35543    35548       +5     
  Partials       7097     7097              
Flag Coverage Δ
common-and-other-modules 44.35% <ø> (+<0.01%) ⬆️
hadoop-mr-java-client 44.99% <ø> (+<0.01%) ⬆️
spark-client-hadoop-common 48.40% <ø> (+<0.01%) ⬆️
spark-java-tests 48.76% <ø> (-0.02%) ⬇️
spark-scala-tests 45.29% <ø> (+<0.01%) ⬆️
utilities 38.37% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...java/org/apache/hudi/config/HoodieWriteConfig.java 89.91% <ø> (+0.06%) ⬆️

... and 11 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

size:XS PR with lines of changes in <= 10

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove hard dependency on apache orc in hudi streaming source 1.2

4 participants