Skip to content

Conversation

@difin
Copy link
Contributor

@difin difin commented Sep 20, 2022

…in OrcRecordUpdater.

What changes were proposed in this pull request?

When split-update is enabled for ACID, OrcRecordUpdater creates two sets of writers: one for the insert deltas and one for the delete deltas. The deleteEventWriter is initialized with similar writerOptions as the normal writer, except that it has a different callback handler. Previously, when creating deleteWriterOptions it was needed to instantiate a new writer options similar to regular writer due to lack of clone method in WriterOptions class in Orc code. Now Orc WriterOptions class implements Cloneable and deleteWriterOptions can be instantiated by cloning the regular writer options.

Why are the changes needed?

Improving code quality.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Unit tests and integration tests.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug C 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 6 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Member

@ayushtkn ayushtkn left a comment

Choose a reason for hiding this comment

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

LGTM

@difin
Copy link
Contributor Author

difin commented Sep 22, 2022

Hey @ayushtkn thanks for reviewing! Can you please merge it? I have no write access yet..

@ayushtkn
Copy link
Member

AFAIK, we have to wait 24 hrs after the first approval, so that people in all timezone can have a look.
Will merge it tomorrow

@ayushtkn ayushtkn merged commit 0384aae into apache:master Sep 23, 2022
DongWei-4 pushed a commit to DongWei-4/hive that referenced this pull request Oct 28, 2022
…in OrcRecordUpdater. (apache#3610). (Dmitriy Fingerman, reviewed by Ayush Saxena)
dengzhhu653 pushed a commit to dengzhhu653/hive that referenced this pull request Dec 15, 2022
…in OrcRecordUpdater. (apache#3610). (Dmitriy Fingerman, reviewed by Ayush Saxena)
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.

3 participants