@Override public boolean deleteTableColumnStatistics(String catName, String dbName, String tblName, String colName) throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException { boolean succ = rawStore.deleteTableColumnStatistics(catName, dbName, tblName, colName); // in case of event based cache update, cache is updated during commit txn if (succ && !canUseEvents) { catName = normalizeIdentifier(catName); dbName = normalizeIdentifier(dbName); tblName = normalizeIdentifier(tblName); if (!shouldCacheTable(catName, dbName, tblName)) { return succ; } sharedCache.removeTableColStatsFromCache(catName, dbName, tblName, colName); } return succ; }
if (!newDbName.equals(dbName) || !newTableName.equals(tableName)) { if (doAlterTable) { msdb.deleteTableColumnStatistics(catName, dbName, tableName, statsObj.getColName()); msdb.deleteTableColumnStatistics(catName, dbName, tableName, statsObj.getColName());
ret = getMS().deleteTableColumnStatistics(parsedDbName[CAT_NAME], parsedDbName[DB_NAME], tableName, colName); if (ret) { if (transactionalListeners != null && !transactionalListeners.isEmpty()) {
@Override public boolean delete_table_column_statistics(String dbName, String tableName, String colName) throws NoSuchObjectException, MetaException, InvalidObjectException, TException, InvalidInputException { dbName = dbName.toLowerCase(); tableName = tableName.toLowerCase(); if (colName != null) { colName = colName.toLowerCase(); } startFunction("delete_column_statistics_by_table: db=" + dbName + " table=" + tableName + " column=" + colName); boolean ret = false; try { ret = getMS().deleteTableColumnStatistics(dbName, tableName, colName); } finally { endFunction("delete_column_statistics_by_table: ", ret != false, null, tableName); } return ret; }
@Override public boolean delete_table_column_statistics(String dbName, String tableName, String colName) throws NoSuchObjectException, MetaException, InvalidObjectException, TException, InvalidInputException { dbName = dbName.toLowerCase(); tableName = tableName.toLowerCase(); if (colName != null) { colName = colName.toLowerCase(); } startFunction("delete_column_statistics_by_table: db=" + dbName + " table=" + tableName + " column=" + colName); boolean ret = false; try { ret = getMS().deleteTableColumnStatistics(dbName, tableName, colName); } finally { endFunction("delete_column_statistics_by_table: ", ret != false, null, tableName); } return ret; }
public boolean delete_table_column_statistics(String dbName, String tableName, String colName) throws NoSuchObjectException, MetaException, InvalidObjectException, TException, InvalidInputException { dbName = dbName.toLowerCase(); tableName = tableName.toLowerCase(); if (colName != null) { colName = colName.toLowerCase(); } startFunction("delete_column_statistics_by_table: db=" + dbName + " table=" + tableName + " column=" + colName); boolean ret = false; try { ret = getMS().deleteTableColumnStatistics(dbName, tableName, colName); } finally { endFunction("delete_column_statistics_by_table: ", ret != false, null, tableName); } return ret; }
@Override public boolean delete_table_column_statistics(String dbName, String tableName, String colName) throws TException { dbName = dbName.toLowerCase(); tableName = tableName.toLowerCase(); String[] parsedDbName = parseDbName(dbName, conf); if (colName != null) { colName = colName.toLowerCase(); } startFunction("delete_column_statistics_by_table", ": table=" + getCatalogQualifiedTableName(parsedDbName[CAT_NAME], parsedDbName[DB_NAME], tableName) + " column=" + colName); boolean ret = false; try { ret = getMS().deleteTableColumnStatistics(parsedDbName[CAT_NAME], parsedDbName[DB_NAME], tableName, colName); } finally { endFunction("delete_column_statistics_by_table", ret != false, null, tableName); } return ret; }
@Override public boolean deleteTableColumnStatistics(String catName, String dbName, String tblName, String colName) throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException { boolean succ = rawStore.deleteTableColumnStatistics(catName, dbName, tblName, colName); if (succ) { catName = normalizeIdentifier(catName); dbName = normalizeIdentifier(dbName); tblName = normalizeIdentifier(tblName); if (!shouldCacheTable(catName, dbName, tblName)) { return succ; } sharedCache.removeTableColStatsFromCache(catName, dbName, tblName, colName); } return succ; }
msdb.deleteTableColumnStatistics(dbName, tableName, null); } else { List<FieldSchema> oldCols = oldTable.getSd().getCols(); msdb.deleteTableColumnStatistics(dbName, tableName, statsObj.getColName());
msdb.deleteTableColumnStatistics(dbName, tableName, null); } else { List<FieldSchema> oldCols = oldTable.getSd().getCols(); msdb.deleteTableColumnStatistics(dbName, tableName, statsObj.getColName());
msdb.deleteTableColumnStatistics(catName, dbName, tableName, statsObj.getColName()); newStatsObjs.add(statsObj); deletedCols.add(statsObj.getColName()); msdb.deleteTableColumnStatistics(catName, dbName, tableName, statsObj.getColName()); deletedCols.add(statsObj.getColName());