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-27268: synthetize empty id lists if no session available #4303

Merged
merged 1 commit into from May 9, 2023

Conversation

henrib
Copy link
Contributor

@henrib henrib commented May 9, 2023

What changes were proposed in this pull request?

When a tool runs without a session, create an empty id list.

Why are the changes needed?

To avoid a potential NPE and be consistent.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Unit test explicitly closing session before call

…titions() on a tx table;

protect context against closed session;
@sonarcloud
Copy link

sonarcloud bot commented May 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 7 Code Smells

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

Copy link
Contributor

@saihemanth-cloudera saihemanth-cloudera left a comment

Choose a reason for hiding this comment

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

Minor nit, otherwise looks good to me.

Copy link
Contributor

@saihemanth-cloudera saihemanth-cloudera left a comment

Choose a reason for hiding this comment

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

Looks good to me. +1

@saihemanth-cloudera saihemanth-cloudera merged commit 2e32367 into apache:master May 9, 2023
7 checks passed
@henrib henrib deleted the HIVE-27268 branch May 10, 2023 13:24
yeahyung pushed a commit to yeahyung/hive that referenced this pull request Jul 20, 2023
tarak271 pushed a commit to tarak271/hive-1 that referenced this pull request Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants