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-24350: NullScanOptimizer can lookup emptiness info from stats fo… #1645

Closed
wants to merge 1 commit into from

Conversation

mustafaiman
Copy link
Contributor

…r managed tables

Change-Id: I7cf7b8f7738c5660ee1c61bcb0456f1c70efe492

What changes were proposed in this pull request?

Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

}
}

for (Entry<Path, Collection<String>> entry : candidatePathsToAliases.entrySet()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't this have the same issue for external tables (e.g text?). For

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are you referring to performance issue? Yes this PR does not change anything for external tables. We cannot rely on statistics for external tables. I have another patch ready (need to test first) that deals with external tables. We'll run listStatus calls in parallel for external tables.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for sharing the details. HIVE-24380 is what you are referring to I believe.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

if (pathToPartitionMap == null) {
continue;
}
addCandidatePath(candidatePathsToAliases, path, alias);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can be candidatePathsToAliases.computeIfAbsent(path, k -> new ArrayList<>()).add(alias) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes sense

…r managed tables

Change-Id: I7cf7b8f7738c5660ee1c61bcb0456f1c70efe492
@rbalamohan
Copy link
Contributor

LGTM pending tests.

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