Skip to content

HIVE-29804: Include table inputs for HS2 authorization SHOW TBLPROPER… - #6683

Open
rtrivedi12 wants to merge 1 commit into
apache:masterfrom
rtrivedi12:HIVE-29804
Open

HIVE-29804: Include table inputs for HS2 authorization SHOW TBLPROPER…#6683
rtrivedi12 wants to merge 1 commit into
apache:masterfrom
rtrivedi12:HIVE-29804

Conversation

@rtrivedi12

Copy link
Copy Markdown
Contributor

…TIES and SHOW TABLE EXTENDED

What changes were proposed in this pull request?

Align authorization input registration for SHOW TBLPROPERTIES and SHOW TABLE EXTENDED
with other metadata DDL commands (e.g. DESCRIBE TABLE) so the configured HS2
authorizer receives the target table in the compile-time input set.

  • ShowTablePropertiesAnalyzer — add ReadEntity(table) before DDLWork is created
  • ShowTableStatusAnalyzer — add ReadEntity(table) before DDLWork is created

Why are the changes needed?

Both analyzers already validate table existence; they were not registering the
authorization checks.

Does this PR introduce any user-facing change?

Yes, commands will fail if user does not have SELECT access

How was this patch tested?

authorization_show_tblproperties_nosel.q
authorization_show_tableextended_nosel.q

@sonarqubecloud

sonarqubecloud Bot commented Aug 6, 2026

Copy link
Copy Markdown

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