Skip to content

HIVE-28619: TestHivePrivilegeObjectOwnerNameAndType to run on Tez - #5600

Merged
okumin merged 1 commit into
apache:masterfrom
Indhumathi27:test_priv
Jan 12, 2025
Merged

okumin merged 1 commit into
apache:masterfrom
Indhumathi27:test_priv

Conversation

@Indhumathi27

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This test class is intended to validate the HivePrivilegeObject for queries. If the current user is changed, insert queries fail when executed on Tez due to the validation of the staging directory's owner. The staging directory is created by the system user when the test is executed in local file system mode. Since the main goal is to validate the privilege object type and count, without checking the owner name, the simplest fix is to run the tests as the system user.

Why are the changes needed?

Since MR is deprecated, remove the test dependency as well, by running with Tez

Does this PR introduce any user-facing change?

No

Is the change a dependency upgrade?

No

How was this patch tested?

Test pipeline

@sonarqubecloud

sonarqubecloud Bot commented Jan 7, 2025

Copy link
Copy Markdown

@Aggarwal-Raghav

Copy link
Copy Markdown
Contributor

LGTM +1 (non-binding)

@okumin okumin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1. Thanks

The staging directory is created by the system user when the test is executed in local file system mode.

I can agree with this statement.

Since the main goal is to validate the privilege object type and count, without checking the owner name, the simplest fix is to run the tests as the system user.

It would be great if we could also check the name as String in testOwnerNames, but I think it is not easy because of the constraint of the local mode.

@okumin
okumin merged commit a057684 into apache:master Jan 12, 2025
henrib pushed a commit to henrib/hive that referenced this pull request Jan 31, 2025
…ache#5600) (Indhumathi Muthumurugesh, reviewed by Raghav Aggarwal, Shohei Okumiya)
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