Skip to content

Commit

Permalink
Adapt paimon 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinKirs committed Apr 22, 2024
1 parent 1fa5cfa commit 8f783d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.paimon.schema.TableSchema;
import org.apache.paimon.table.AbstractFileStoreTable;
import org.apache.paimon.table.FileStoreTable;
import org.apache.paimon.table.Table;
import org.apache.paimon.table.source.Split;
import org.apache.paimon.types.ArrayType;
Expand Down Expand Up @@ -73,7 +73,7 @@ public List<Column> initSchema() {
//init schema need update lastUpdateTime and get latest schema
objectCreated = false;
Table table = getOriginTable();
TableSchema schema = ((AbstractFileStoreTable) table).schema();
TableSchema schema = ((FileStoreTable) table).schema();
List<DataField> columns = schema.fields();
List<Column> tmpSchema = Lists.newArrayListWithCapacity(columns.size());
for (DataField field : columns) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
import org.apache.logging.log4j.Logger;
import org.apache.paimon.data.BinaryRow;
import org.apache.paimon.predicate.Predicate;
import org.apache.paimon.table.AbstractFileStoreTable;
import org.apache.paimon.table.FileStoreTable;
import org.apache.paimon.table.source.DataSplit;
import org.apache.paimon.table.source.RawFile;
import org.apache.paimon.table.source.ReadBuilder;
Expand Down Expand Up @@ -222,7 +222,7 @@ public void updateRequiredSlots(PlanTranslatorContext planTranslatorContext,

@Override
public TFileType getLocationType() throws DdlException, MetaNotFoundException {
return getLocationType(((AbstractFileStoreTable) source.getPaimonTable()).location().toString());
return getLocationType(((FileStoreTable) source.getPaimonTable()).location().toString());
}

@Override
Expand Down

0 comments on commit 8f783d2

Please sign in to comment.