public InvalidInputException deepCopy() { return new InvalidInputException(this); }
@Override public SetPartitionsStatsResponse update_partition_column_statistics_req( SetPartitionsStatsRequest req) throws NoSuchObjectException, InvalidObjectException, MetaException, InvalidInputException, TException { if (req.getColStatsSize() != 1) { throw new InvalidInputException("Only one stats object expected"); } if (req.isNeedMerge()) { throw new InvalidInputException("Merge is not supported for non-aggregate stats"); } ColumnStatistics colStats = req.getColStatsIterator().next(); boolean ret = updatePartitonColStatsInternal(null, colStats, req.getValidWriteIdList(), req.getWriteId()); return new SetPartitionsStatsResponse(ret); }
@Override public SetPartitionsStatsResponse update_table_column_statistics_req( SetPartitionsStatsRequest req) throws NoSuchObjectException, InvalidObjectException, MetaException, InvalidInputException, TException { if (req.getColStatsSize() != 1) { throw new InvalidInputException("Only one stats object expected"); } if (req.isNeedMerge()) { throw new InvalidInputException("Merge is not supported for non-aggregate stats"); } ColumnStatistics colStats = req.getColStatsIterator().next(); boolean ret = updateTableColumnStatsInternal(colStats, req.getValidWriteIdList(), req.getWriteId()); return new SetPartitionsStatsResponse(ret); }
catName = normalizeIdentifier(catName); if (tableName == null) { throw new InvalidInputException("Table name is null.");
Warehouse.DEFAULT_DATABASE_NAME); if (tableName == null) { throw new InvalidInputException("Table name is null.");
public InvalidInputException deepCopy() { return new InvalidInputException(this); }
public InvalidInputException deepCopy() { return new InvalidInputException(this); }
public InvalidInputException deepCopy() { return new InvalidInputException(this); }
/** * {@inheritDoc} */ @Override public void alter_database(final String dbname, final Database db) throws TException { requestWrapper("update_database", new Object[]{db}, () -> { if (dbname == null || db == null) { throw new InvalidInputException("Invalid database request"); } v1.updateDatabase(catalogName, normalizeIdentifier(dbname), DatabaseCreateRequestDto.builder().metadata(db.getParameters()).build()); return null; }); }
/** * {@inheritDoc} */ @Override public void alter_database(final String dbname, final Database db) throws TException { requestWrapper("update_database", new Object[]{db}, () -> { if (dbname == null || db == null) { throw new InvalidInputException("Invalid database request"); } v1.updateDatabase(catalogName, normalizeIdentifier(dbname), DatabaseCreateRequestDto.builder().metadata(db.getParameters()).build()); return null; }); }
throw new InvalidInputException("TableName/PartName/ColName passed to " + " get_partition_column_statistics is null");
throw new InvalidInputException("TableName/ColName passed to get_table_column_statistics " + "is null");
throw new InvalidInputException("Table name is null.");
throw new InvalidInputException("Table name is null.");
catName = normalizeIdentifier(catName); if (tableName == null) { throw new InvalidInputException("Table name is null.");
throw new InvalidInputException("Table name is null.");
throw new InvalidInputException("Table name is null.");
Warehouse.DEFAULT_DATABASE_NAME); if (tableName == null) { throw new InvalidInputException("Table name is null.");
throw new InvalidInputException("Table name is null.");
throw new InvalidInputException("Table name is null.");