You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by dw...@apache.org on 2023/04/05 23:36:28 UTC

[iceberg] 01/02: REST: fix previous locations for refs-only load (#7284)

This is an automated email from the ASF dual-hosted git repository.

dweeks pushed a commit to branch 1.2.x
in repository https://gitbox.apache.org/repos/asf/iceberg.git

commit 214bfc965b7ed1c8b1224b496e0f42134f4f146c
Author: Bryan Keller <br...@gmail.com>
AuthorDate: Wed Apr 5 15:51:40 2023 -0700

    REST: fix previous locations for refs-only load (#7284)
---
 core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java b/core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java
index 2b363752b7..a7b86a8d59 100644
--- a/core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java
+++ b/core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java
@@ -334,6 +334,7 @@ public class RESTSessionCatalog extends BaseSessionCatalog
       tableMetadata =
           TableMetadata.buildFrom(response.tableMetadata())
               .withMetadataLocation(response.metadataLocation())
+              .setPreviousFileLocation(null)
               .setSnapshotsSupplier(
                   () ->
                       loadInternal(context, identifier, SnapshotMode.ALL)