/** {@inheritDoc} */ @Override public boolean setPartitionColumnStatistics(SetPartitionsStatsRequest request) throws NoSuchObjectException, InvalidObjectException, MetaException, TException, InvalidInputException { if (request.getColStatsSize() == 1) { ColumnStatistics colStats = request.getColStatsIterator().next(); ColumnStatisticsDesc desc = colStats.getStatsDesc(); String dbName = desc.getDbName().toLowerCase(); String tableName = desc.getTableName().toLowerCase(); if (getTempTable(dbName, tableName) != null) { return updateTempTableColumnStats(dbName, tableName, colStats); } } return super.setPartitionColumnStatistics(request); }
/** {@inheritDoc} */ @Override public boolean setPartitionColumnStatistics(SetPartitionsStatsRequest request) throws NoSuchObjectException, InvalidObjectException, MetaException, TException, InvalidInputException { if (request.getColStatsSize() == 1) { ColumnStatistics colStats = request.getColStatsIterator().next(); ColumnStatisticsDesc desc = colStats.getStatsDesc(); String dbName = desc.getDbName().toLowerCase(); String tableName = desc.getTableName().toLowerCase(); if (getTempTable(dbName, tableName) != null) { return updateTempTableColumnStats(dbName, tableName, colStats); } } return super.setPartitionColumnStatistics(request); }
/** {@inheritDoc} */ @Override public boolean updateTableColumnStatistics(ColumnStatistics statsObj) throws NoSuchObjectException, InvalidObjectException, MetaException, TException, InvalidInputException { String dbName = statsObj.getStatsDesc().getDbName().toLowerCase(); String tableName = statsObj.getStatsDesc().getTableName().toLowerCase(); if (getTempTable(dbName, tableName) != null) { return updateTempTableColumnStats(dbName, tableName, statsObj); } return super.updateTableColumnStatistics(statsObj); }