Skip to content

Commit

Permalink
[FLINK-25174][table-api] Introduce Catalog.supportsManagedTable
Browse files Browse the repository at this point in the history
  • Loading branch information
JingsongLi committed Dec 17, 2021
1 parent 10805af commit 8614ece
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def excluded_methods(cls):
'getFactory',
'getTableFactory',
'getFunctionDefinitionFactory',
'listPartitionsByFilter'}
'listPartitionsByFilter',
'supportsManagedTable'}


class CatalogDatabaseAPICompletenessTests(PythonAPICompletenessTestCase, PyFlinkTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ public void alterTable(
}
}

@Override
public boolean supportsManagedTable() {
return true;
}

// ------ tables and views ------

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,15 @@ void createTable(ObjectPath tablePath, CatalogBaseTable table, boolean ignoreIfE
void alterTable(ObjectPath tablePath, CatalogBaseTable newTable, boolean ignoreIfNotExists)
throws TableNotExistException, CatalogException;

/**
* If true, tables which do not specify a connector will be translated to managed tables.
*
* @see CatalogBaseTable.TableKind#MANAGED
*/
default boolean supportsManagedTable() {
return false;
}

// ------ partitions ------

/**
Expand Down

0 comments on commit 8614ece

Please sign in to comment.