Skip to content

Commit

Permalink
Refactor IcebergAbstractMetadata to utilize newly defined SPI method
Browse files Browse the repository at this point in the history
  • Loading branch information
hantangwangd committed Apr 1, 2024
1 parent c5bcd37 commit 402b6da
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,10 @@ protected final Table getIcebergTable(ConnectorSession session, SchemaTableName
protected abstract void unregisterTable(ConnectorSession clientSession, SchemaTableName schemaTableName);

/**
* This class implements the default implementation for getTableLayouts which will be used in the case of a Java Worker
* This class implements the default implementation for getTableLayoutForConstraint which will be used in the case of a Java Worker
*/
@Override
public List<ConnectorTableLayoutResult> getTableLayouts(
public ConnectorTableLayoutResult getTableLayoutForConstraint(
ConnectorSession session,
ConnectorTableHandle table,
Constraint<ColumnHandle> constraint,
Expand Down Expand Up @@ -233,7 +233,7 @@ public List<ConnectorTableLayoutResult> getTableLayouts(
.setPartitions(Optional.empty())
.setTable(handle)
.build());
return ImmutableList.of(new ConnectorTableLayoutResult(layout, constraint.getSummary()));
return new ConnectorTableLayoutResult(layout, constraint.getSummary());
}

public static Subfield toSubfield(ColumnHandle columnHandle)
Expand Down

0 comments on commit 402b6da

Please sign in to comment.