Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2.1
-
None
Description
RelOptHiveTable.hiveColStatsMap might contain mismatched stats since it was built by assuming the stats returned from
==
hiveColStats =StatsUtils.getTableColumnStats(hiveTblMetadata, hiveNonPartitionCols, nonPartColNamesThatRqrStats);
or
HiveMetaStoreClient.getTableColumnStatistics(dbName, tableName, colNames)
==
have the same order of the requested columns. But actually the order is non-deterministic. therefore the returned stats should be re-ordered before it is put in hiveColStatsMap.