Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/25226 )
Change subject: IMPALA-15691 Fix INVALID_TYPE issue for NULL predicates ...................................................................... Patch Set 2: (4 comments) I'm going to add Zoltan to this review, but I have some nits and a question about the approach http://gerrit.cloudera.org:8080/#/c/25226/2//COMMIT_MSG Commit Message: http://gerrit.cloudera.org:8080/#/c/25226/2//COMMIT_MSG@7 PS2, Line 7: IMPALA-15691 Fix INVALID_TYPE issue for NULL predicates Follow the JIRA with a colon, like "IMPALA-15691: rest of title" http://gerrit.cloudera.org:8080/#/c/25226/2//COMMIT_MSG@9 PS2, Line 9: PROBLEM DESCRIPTION: Nit: Take a look at the git history for this project and read some commit messages and try to match the style. You're including the right content, but we don't break the initial description into explicit sections like PROBLEM DESCRIPTION. We usually start by describing the issue (why are we doing a change). We do describe what we did and the decisions we made, but it is usually just another paragraph without an explicit section boundary. We do note the testing that we did in an actual section. We tend to avoid all-uppercase for this section name (e.g. " "Testing:"). We often follow this with a bulleted list with "-". The audience is the reviewer and other Impala developers, so we often assume that they know what the usual test jobs do. We often use a short hand based on the EXPLORATION_STRATEGY and assume all the options are set (FE_TEST, EE_TEST, etc). EXPLORATION_STRATEGY=core is a "core job". EXPLORATION_STRATEGY=exhaustive is an "exhaustive job". http://gerrit.cloudera.org:8080/#/c/25226/2//COMMIT_MSG@17 PS2, Line 17: During type coercion, FunctionUtils.resolveFunction() selects the : is_null_pred(VARIANT) overload. : FunctionResolutionOrder sorts function overloads according to their : getPrimitiveType().ordinal() values. However, VariantType does not : override getPrimitiveType() and therefore inherits the implementation : in Type.java, which returns INVALID_TYPE.As a result, the VARIANT : overload is ordered based on INVALID_TYPE,leading to incorrect : function resolution. Nit: Watch for extra spaces or missing spaces. One thing that can be useful is to tell an LLM "I'm about to post this latest commit for code review. Please review the comments and commit message for spelling, grammar, and clarity." It may come back with too much (it's stricter than your average Impala reviewer), but it will also flag things that you would probably also get from an Impala reviewer. http://gerrit.cloudera.org:8080/#/c/25226/2//COMMIT_MSG@27 PS2, Line 27: Reposition INVALID_TYPE in the PrimitiveType enum. Moving it : from the beginning of the enum to the last position. AI mentions that another approach would be to have FunctionResolutionOrder's typeCompare have special handling for variant. I think I might prefer that. That function already throws an error for complex types, and it seems reasonable for variant to have special handling there. -- To view, visit http://gerrit.cloudera.org:8080/25226 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Id06b23cb958566a5a90cc321fe215d8c2a634b71 Gerrit-Change-Number: 25226 Gerrit-PatchSet: 2 Gerrit-Owner: Anonymous Coward <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Joe McDonnell <[email protected]> Gerrit-Reviewer: Steve Carlin <[email protected]> Gerrit-Comment-Date: Thu, 29 Oct 2026 19:55:47 +0000 Gerrit-HasComments: Yes
