Skip to content

HIVE-29443: NPE in FunctionRegistry#getFunctionInfo when session not available#6301

Open
zabetak wants to merge 1 commit intoapache:masterfrom
zabetak:HIVE-29443
Open

HIVE-29443: NPE in FunctionRegistry#getFunctionInfo when session not available#6301
zabetak wants to merge 1 commit intoapache:masterfrom
zabetak:HIVE-29443

Conversation

@zabetak
Copy link
Member

@zabetak zabetak commented Feb 5, 2026

What changes were proposed in this pull request?

  1. Add FunctionUtils.qualifyFunctionName handling the qualification with the current database
  2. Start session in TestFunctionRegistry only when required by tests and handle cleanup as well

Why are the changes needed?

  1. Avoid NPE due to missing session when calling the FunctionRegistry APIs
  2. Reduce coupling of FunctionRegistry with SessionState

Does this PR introduce any user-facing change?

No

How was this patch tested?

mvn test -Dtest=TestFunctionRegistry

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 5, 2026

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.

2 participants