Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-10122

Hive metastore filter-by-expression is broken for non-partition expressions

Log workAgile BoardRank to TopRank to BottomVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.14.0, 1.0.0, 1.1.0
    • Fix Version/s: 1.2.0
    • Component/s: Metastore
    • Labels:
      None

      Description

      See https://issues.apache.org/jira/browse/HIVE-10091?focusedCommentId=14382413&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14382413

      These two lines of code

          // Replace virtual columns with nulls. See javadoc for details.
          prunerExpr = removeNonPartCols(prunerExpr, extractPartColNames(tab), partColsUsedInFilter);
          // Remove all parts that are not partition columns. See javadoc for details.
          ExprNodeDesc compactExpr = compactExpr(prunerExpr.clone());
      

      are supposed to take care of this; I see there were bunch of changes to this code over some time, and now it appears to be broken.

      Thanks to Thejas Nair for info.

        Attachments

        1. HIVE-10122.patch
          7 kB
          Sergey Shelukhin
        2. HIVE-10122.02.patch
          162 kB
          Sergey Shelukhin
        3. HIVE-10122.01.patch
          7 kB
          Sergey Shelukhin

        Issue Links

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              sershe Sergey Shelukhin Assign to me
              Reporter:
              sershe Sergey Shelukhin

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment