org.apache.flink.table.catalog.exceptions.TablePartitionedException Java Examples
The following examples show how to use
org.apache.flink.table.catalog.exceptions.TablePartitionedException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CatalogStatisticsTest.java From flink with Apache License 2.0 | 5 votes |
private void alterTableStatistics( Catalog catalog, String tableName) throws TableNotExistException, TablePartitionedException { catalog.alterTableStatistics(new ObjectPath(databaseName, tableName), new CatalogTableStatistics(100, 10, 1000L, 2000L), true); catalog.alterTableColumnStatistics(new ObjectPath(databaseName, tableName), createColumnStats(), true); }
Example #2
Source File: CatalogStatisticsTest.java From flink with Apache License 2.0 | 5 votes |
private void alterTableStatisticsWithUnknownRowCount( Catalog catalog, String tableName) throws TableNotExistException, TablePartitionedException { catalog.alterTableStatistics(new ObjectPath(databaseName, tableName), new CatalogTableStatistics(CatalogTableStatistics.UNKNOWN.getRowCount(), 1, 10000, 200000), true); catalog.alterTableColumnStatistics(new ObjectPath(databaseName, tableName), createColumnStats(), true); }
Example #3
Source File: PulsarCatalog.java From pulsar-flink with Apache License 2.0 | 4 votes |
@Override public void alterTableColumnStatistics(ObjectPath tablePath, CatalogColumnStatistics columnStatistics, boolean ignoreIfNotExists) throws TableNotExistException, CatalogException, TablePartitionedException { throw new UnsupportedOperationException(); }
Example #4
Source File: AbstractReadOnlyCatalog.java From bahir-flink with Apache License 2.0 | 4 votes |
@Override public void alterTableColumnStatistics(ObjectPath tablePath, CatalogColumnStatistics columnStatistics, boolean ignoreIfNotExists) throws TableNotExistException, CatalogException, TablePartitionedException { throw UNSUPPORTED_ERR; }
Example #5
Source File: AbstractJdbcCatalog.java From flink with Apache License 2.0 | 4 votes |
@Override public void alterTableColumnStatistics(ObjectPath tablePath, CatalogColumnStatistics columnStatistics, boolean ignoreIfNotExists) throws TableNotExistException, CatalogException, TablePartitionedException { throw new UnsupportedOperationException(); }
Example #6
Source File: Catalog.java From flink with Apache License 2.0 | 2 votes |
/** * Update the column statistics of a table. * * @param tablePath path of the table * @param columnStatistics new column statistics to update * @param ignoreIfNotExists flag to specify behavior if the table does not exist: * if set to false, throw an exception, * if set to true, nothing happens. * * @throws TableNotExistException if the table does not exist in the catalog * @throws CatalogException in case of any runtime exception */ void alterTableColumnStatistics(ObjectPath tablePath, CatalogColumnStatistics columnStatistics, boolean ignoreIfNotExists) throws TableNotExistException, CatalogException, TablePartitionedException;
Example #7
Source File: Catalog.java From flink with Apache License 2.0 | 2 votes |
/** * Update the column statistics of a table. * * @param tablePath path of the table * @param columnStatistics new column statistics to update * @param ignoreIfNotExists flag to specify behavior if the table does not exist: * if set to false, throw an exception, * if set to true, nothing happens. * * @throws TableNotExistException if the table does not exist in the catalog * @throws CatalogException in case of any runtime exception */ void alterTableColumnStatistics(ObjectPath tablePath, CatalogColumnStatistics columnStatistics, boolean ignoreIfNotExists) throws TableNotExistException, CatalogException, TablePartitionedException;