Skip to content

Commit

Permalink
[Improve][API] Check catalog table names legal before send to downstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Hisoka-X committed Aug 10, 2024
1 parent 3ad2d02 commit 87e3be8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public class TableSinkFactoryContext extends TableFactoryContext {
public TableSinkFactoryContext(
CatalogTable catalogTable, ReadonlyConfig options, ClassLoader classLoader) {
super(options, classLoader);
checkCatalogTableIllegal(Collections.singletonList(catalogTable));
if (catalogTable != null) {
checkCatalogTableIllegal(Collections.singletonList(catalogTable));
}
this.catalogTable = catalogTable;
}

Expand Down

0 comments on commit 87e3be8

Please sign in to comment.