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

Suspect Direct SQL Statement Regarding BitVector

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.2, 4.0.0
    • None
    • None

    Description

      https://github.com/apache/hive/blob/26cc3154c061d2194fba1c3bb156bb7e06e4a6c5/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java#L1249

      The list of things that gets SELECT-ed from the backend database depends on a flag:

          final String queryText0 = "select " + getStatsList(enableBitVector) + " from " + TAB_COL_STATS
                + " where \"CAT_NAME\" = ? and \"DB_NAME\" = ? and \"TABLE_NAME\" = ? "
                + " and \"ENGINE\" = ? and \"COLUMN_NAME\" in (";
      

      However, the same flag is not passed to the Java Marshaling code, so I sincerely doubt that it is being parsed correctly. How can it know what the number of columns are?

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned Assign to me
            belugabehr David Mollitor

            Dates

              Created:
              Updated:

              Slack

                Issue deployment