Fang-Yu Rao 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 3: (8 comments) I verified patch set 3 and it looks good to me. I answered my own question at https://gerrit.cloudera.org/c/25144/2//COMMIT_MSG#21 regarding "row__id". I could bump up the vote to +2, if the patch passes the pre-commit tests and no one else has any additional suggestions. http://gerrit.cloudera.org:8080/#/c/25144/2//COMMIT_MSG Commit Message: http://gerrit.cloudera.org:8080/#/c/25144/2//COMMIT_MSG@21 PS2, Line 21: "row__id" > I am still a bit confused. The following query does not result in a SqlPars I am answering my own question. For the following query, Calcite's own parser could parse the query without throwing a SqlParseException. Instead, a SqlValidatorException will be thrown by Calcite's own SqlValidatorImpl, which in turn will be processed at https://gerrit.cloudera.org/c/25144/2..3/java/calcite-planner/src/main/java/org/apache/impala/calcite/service/UnsupportedChecker.java#118 and eventually an UnsupportedFeatureException("RowId column is not supported.") will be thrown. SELECT row__id.*, * FROM functional_orc_def.alltypestiny http://gerrit.cloudera.org:8080/#/c/25144/2/fe/src/main/java/org/apache/impala/analysis/AnalysisContext.java File fe/src/main/java/org/apache/impala/analysis/AnalysisContext.java: http://gerrit.cloudera.org:8080/#/c/25144/2/fe/src/main/java/org/apache/impala/analysis/AnalysisContext.java@529 PS2, Line 529: > Thanks for the explanation Steve! Done http://gerrit.cloudera.org:8080/#/c/25144/2/fe/src/main/java/org/apache/impala/service/Frontend.java File fe/src/main/java/org/apache/impala/service/Frontend.java: http://gerrit.cloudera.org:8080/#/c/25144/2/fe/src/main/java/org/apache/impala/service/Frontend.java@2521 PS2, Line 2521: ? ImmutableList.of(planner) > Done Done http://gerrit.cloudera.org:8080/#/c/25144/2/fe/src/main/java/org/apache/impala/service/Frontend.java@2540 PS2, Line 2540: error = e; : attemptedPlanner = compilerFactory.getPlannerString(); : > Done Done http://gerrit.cloudera.org:8080/#/c/25144/2/java/calcite-planner/src/main/java/org/apache/impala/calcite/service/CalciteAnalysisDriver.java File java/calcite-planner/src/main/java/org/apache/impala/calcite/service/CalciteAnalysisDriver.java: http://gerrit.cloudera.org:8080/#/c/25144/2/java/calcite-planner/src/main/java/org/apache/impala/calcite/service/CalciteAnalysisDriver.java@151 PS2, Line 151: queryCtx_, ctx_); : UnsupportedChecker.th > Thanks for the detailed explanation Steve! Now I have a better understandin Done http://gerrit.cloudera.org:8080/#/c/25144/2/java/calcite-planner/src/main/java/org/apache/impala/calcite/service/CalciteAnalysisDriver.java@152 PS2, Line 152: UnsupportedChecker.throwUnsupportedIfKnownException(e, stmtTableCache_, The above question is only for my own understanding. It's in general safe to call the 2 methods above. We probably don't need more code comments. http://gerrit.cloudera.org:8080/#/c/25144/2/java/calcite-planner/src/main/java/org/apache/impala/calcite/service/CalciteAnalysisDriver.java@212 PS2, Line 212: > Done Done http://gerrit.cloudera.org:8080/#/c/25144/2/java/calcite-planner/src/main/java/org/apache/impala/calcite/service/CalciteMetadataHandler.java File java/calcite-planner/src/main/java/org/apache/impala/calcite/service/CalciteMetadataHandler.java: http://gerrit.cloudera.org:8080/#/c/25144/2/java/calcite-planner/src/main/java/org/apache/impala/calcite/service/CalciteMetadataHandler.java@311 PS2, Line 311: (onlyColumnPart.toLowerCase().equals("_file > Done Done -- 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: 3 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: Wed, 28 Oct 2026 18:52:29 +0000 Gerrit-HasComments: Yes
