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

Suspect Direct SQL Statement Regarding BitVector

    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

          People

            Unassigned Unassigned
            belugabehr David Mollitor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: