Fang-Yu Rao has posted comments on this change. ( 
https://gerrit.cloudera.org/25078 )

Change subject: IMPALA-15500, IMPALA-15533: Register column-level privilege 
requests in USING
......................................................................


Patch Set 8:

(1 comment)

I addressed Aleksandr's comment on patch set 7. Now we only register 
column-level privilege requests only if the column involved in the USING clause 
exists in the respective table.

https://gerrit.cloudera.org/#/c/25078/5/java/calcite-planner/src/main/java/org/apache/impala/calcite/service/ImpalaSqlValidatorImpl.java
File 
java/calcite-planner/src/main/java/org/apache/impala/calcite/service/ImpalaSqlValidatorImpl.java:

https://gerrit.cloudera.org/#/c/25078/5/java/calcite-planner/src/main/java/org/apache/impala/calcite/service/ImpalaSqlValidatorImpl.java@226
PS5, Line 226:   private void registerColumnPrivilegeInUsing(SqlIdentifier 
identifier,
> PS7 now visits both JOIN children, but for a(id,k) and b(k) the same query
Thanks for pointing this out Aleksandr! You are indeed correct. I think before 
registering the privilege request for the column (e.g., 'id' in our example), 
we need to make sure feTable.getColumn(columnName) of that FeTable at 
https://gerrit.cloudera.org/c/25078/5/java/calcite-planner/src/main/java/org/apache/impala/calcite/service/ImpalaSqlValidatorImpl.java#230
 does not evaluate to null.

I will address this in the next patch.



--
To view, visit https://gerrit.cloudera.org/25078
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia49fc01fc45408649b36441c436038921dbb9451
Gerrit-Change-Number: 25078
Gerrit-PatchSet: 8
Gerrit-Owner: Fang-Yu Rao <[email protected]>
Gerrit-Reviewer: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Aman Sinha <[email protected]>
Gerrit-Reviewer: Fang-Yu Rao <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>
Gerrit-Reviewer: Steve Carlin <[email protected]>
Gerrit-Comment-Date: Thu, 05 Nov 2026 23:52:18 +0000
Gerrit-HasComments: Yes

Reply via email to