Skip to content

Conversation

@mdayakar
Copy link
Contributor

HIVE-28573: Unable to execute HPLSQl queries when hive authorization is enabled.

What changes were proposed in this pull request?

HplSqlQueryExecutor sets QUERY_EXECUTOR value to HPLSQL as a part of HPLSQL execution. When hive.security.authorization.enabled hive configuration property is set to true, it allows only whitelisted hive configuration properties to modify but here QUERY_EXECUTOR is not whitelisted so throwing error.
Adding QUERY_EXECUTOR to the hive.security.authorization.sqlstd.confwhitelist property so that it won't report the specified error.

Why are the changes needed?

To execute HPLSQL statements even hive.security.authorization.enabled hive configuration property is set to true,.

Does this PR introduce any user-facing change?

No

Is the change a dependency upgrade?

No

How was this patch tested?

Existing test cases should pass after enabling hive.security.authorization.enabled hive configuration property.

@sonarqubecloud
Copy link

@difin
Copy link
Contributor

difin commented Oct 16, 2024

I verified that without the changes in HiveConf the tests in TestHplSqlViaBeeLine fail, so the fix is proper.

+1 LGTM.

@kasakrisz kasakrisz merged commit 49a6ff8 into apache:master Oct 17, 2024
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.

4 participants