David Mollitor created HIVE-23038: ------------------------------------- Summary: Suspect Direct SQL Statement Regarding BitVector Key: HIVE-23038 URL: https://issues.apache.org/jira/browse/HIVE-23038 Project: Hive Issue Type: Improvement Components: Standalone Metastore, Statistics Affects Versions: 3.1.2, 4.0.0 Reporter: David Mollitor
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: {code:java} 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 ("; {code} 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? -- This message was sent by Atlassian Jira (v8.3.4#803005)