From b91270806e9bf19d018c2529b739f5394605e0d8 Mon Sep 17 00:00:00 2001 From: wangd Date: Mon, 1 Apr 2024 20:54:33 +0800 Subject: [PATCH] Refactor IcebergAbstractMetadata to utilize newly defined SPI method --- .../facebook/presto/iceberg/IcebergAbstractMetadata.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergAbstractMetadata.java b/presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergAbstractMetadata.java index 4d30b08e1023..01e1b161ed4c 100644 --- a/presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergAbstractMetadata.java +++ b/presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergAbstractMetadata.java @@ -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 getTableLayouts( + public ConnectorTableLayoutResult getTableLayoutForConstraint( ConnectorSession session, ConnectorTableHandle table, Constraint constraint, @@ -233,7 +233,7 @@ public List 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)