Skip to content

Commit

Permalink
[Improve] Remove CatalogTable field in CatalogTableUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
Hisoka-X committed Sep 19, 2023
1 parent bb76b62 commit 02ef65f
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
import org.apache.seatunnel.common.utils.JsonUtils;
import org.apache.seatunnel.common.utils.SeaTunnelException;

import lombok.Getter;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;
Expand Down Expand Up @@ -70,12 +69,6 @@ public class CatalogTableUtil implements Serializable {
new SeaTunnelRowType(
new String[] {"content"}, new SeaTunnelDataType<?>[] {BasicType.STRING_TYPE});

@Getter private final CatalogTable catalogTable;

private CatalogTableUtil(CatalogTable catalogTable) {
this.catalogTable = catalogTable;
}

@Deprecated
public static CatalogTable getCatalogTable(String tableName, SeaTunnelRowType rowType) {
TableSchema.Builder schemaBuilder = TableSchema.builder();
Expand Down Expand Up @@ -214,10 +207,6 @@ public static SeaTunnelRowType buildSimpleTextSchema() {
return SIMPLE_SCHEMA;
}

public SeaTunnelRowType getSeaTunnelRowType() {
return catalogTable.getTableSchema().toPhysicalRowDataType();
}

public static SeaTunnelDataType<?> parseDataType(String columnStr) {
SqlType sqlType = null;
try {
Expand Down

0 comments on commit 02ef65f

Please sign in to comment.