Steve Carlin has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/25144 )

Change subject: IMPALA-14944: Throw UnsupportedFeatureException for some 
Calcite planner queries
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/25144/2/java/calcite-planner/src/main/java/org/apache/impala/calcite/service/ComplexTableDetector.java
File 
java/calcite-planner/src/main/java/org/apache/impala/calcite/service/ComplexTableDetector.java:

http://gerrit.cloudera.org:8080/#/c/25144/2/java/calcite-planner/src/main/java/org/apache/impala/calcite/service/ComplexTableDetector.java@121
PS2, Line 121: throw new UnsupportedFeatureException("Complex table " + 
detector.complexTable_ +
             :           " not supported.")
> Is my understanding correct that authorization based on the AnalysisResult
Well...

My worry has always been that if we don't process things correctly in the 
Calcite planner dealing with complex tables, we may incorrectly return an error 
message to the user that shows a table exists even if the user is not 
authorized to see it.

So the idea here is that if we detect anything to do with a complex table, we 
always throw an UnsupportedFeatureException.  If this exception is thrown, it 
will force the original planner to compile the query.  And we know the original 
planner will provide the correct authorization message.

We may be able to catch all the cases and throw the right message with the 
Calcite planner. I'd like to punt this for now though and fallback to the 
original planner to handle anything dealing with authorization on a complex 
table.



--
To view, visit http://gerrit.cloudera.org:8080/25144
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I037d636064c4c99131598b7424dd99e4ad56d30f
Gerrit-Change-Number: 25144
Gerrit-PatchSet: 2
Gerrit-Owner: Steve Carlin <[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: Joe McDonnell <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Steve Carlin <[email protected]>
Gerrit-Comment-Date: Thu, 22 Oct 2026 14:12:39 +0000
Gerrit-HasComments: Yes

Reply via email to