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

HIVE-28593: INSERT OVERWRITE DIRECTORY is not cleaning up the HDFS data #5522

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

saihemanth-cloudera
Copy link
Contributor

What changes were proposed in this pull request?

INSERT OVERWRITE DIRECTORY will clean up the hdfs directory when zero rows are available to insert.

Why are the changes needed?

HDFS directory is not cleaned up and it can lead to data correctness issues.

Does this PR introduce any user-facing change?

No.

Is the change a dependency upgrade?

No.

How was this patch tested?

Manual testing

Copy link

sonarcloud bot commented Oct 29, 2024

Comment on lines +157 to +163
public boolean getIsOverwrite() {
return isOverwrite;
}

public void setIsOverwrite(boolean isOverwrite) {
this.isOverwrite = isOverwrite;
}
Copy link
Contributor

@difin difin Oct 29, 2024

Choose a reason for hiding this comment

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

It is better to name the getters/setters for boolean members like getOverwrite() and setOverwrite().

https://stackoverflow.com/questions/5322648/for-a-boolean-field-what-is-the-naming-convention-for-its-getter-setter

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