Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
public interface TableChange {

/**
* A table change toadd the column with specified position.
* A table change to add the column with specified position.
*
* <p>It is equal to the following statement:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ public void open() throws CatalogException {
public void close() throws CatalogException {
IOUtils.closeQuietly(admin, "fluss-admin");
IOUtils.closeQuietly(connection, "fluss-connection");
IOUtils.closeQuietly(lakeFlinkCatalog, "fluss-lake-catalog");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import static org.apache.fluss.utils.Preconditions.checkNotNull;

/** A lake flink catalog to delegate the operations on lake table. */
public class LakeFlinkCatalog {
public class LakeFlinkCatalog implements AutoCloseable {

private final String catalogName;
private final ClassLoader classLoader;
Expand Down Expand Up @@ -93,6 +93,13 @@ public DataLakeFormat getLakeFormat() {
return lakeFormat;
}

@Override
public void close() throws Exception {
if (catalog != null) {
catalog.close();
}
}

/**
* Factory for creating Paimon Catalog instances.
*
Expand Down