You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by am...@apache.org on 2025/09/20 16:01:15 UTC

(iceberg) branch main updated: Core: Fix Scan Plan API resource paths (#14120)

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

amoghj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/main by this push:
     new b99caa4aaf Core: Fix Scan Plan API resource paths (#14120)
b99caa4aaf is described below

commit b99caa4aaf53bb30eebcb478743d3845e76ccf4c
Author: Prashant Singh <35...@users.noreply.github.com>
AuthorDate: Sat Sep 20 09:01:08 2025 -0700

    Core: Fix Scan Plan API resource paths (#14120)
    
    Co-authored-by: Prashant Singh <pr...@snowflake.com>
---
 .palantir/revapi.yml                                         | 12 ++++++++++++
 .../src/main/java/org/apache/iceberg/rest/ResourcePaths.java |  9 ++++++---
 2 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/.palantir/revapi.yml b/.palantir/revapi.yml
index b8f2176118..d9318b5cff 100644
--- a/.palantir/revapi.yml
+++ b/.palantir/revapi.yml
@@ -1365,6 +1365,18 @@ acceptedBreaks:
       justification: "Removing deprecations for 1.10.0"
   "1.10.0":
     org.apache.iceberg:iceberg-core:
+      - code: "java.field.constantValueChanged"
+        old: "field org.apache.iceberg.rest.ResourcePaths.V1_TABLE_SCAN_PLAN"
+        new: "field org.apache.iceberg.rest.ResourcePaths.V1_TABLE_SCAN_PLAN"
+        justification: "Plan API is table scoped and path constant value should include namespace. No actual breakage because it never worked before with incorrect value."
+      - code: "java.field.constantValueChanged"
+        old: "field org.apache.iceberg.rest.ResourcePaths.V1_TABLE_SCAN_PLAN_SUBMIT"
+        new: "field org.apache.iceberg.rest.ResourcePaths.V1_TABLE_SCAN_PLAN_SUBMIT"
+        justification: "Plan API is table scoped and path constant value should include namespace. No actual breakage because it never worked before with incorrect value."
+      - code: "java.field.constantValueChanged"
+        old: "field org.apache.iceberg.rest.ResourcePaths.V1_TABLE_SCAN_PLAN_TASKS"
+        new: "field org.apache.iceberg.rest.ResourcePaths.V1_TABLE_SCAN_PLAN_TASKS"
+        justification: "Plan API is table scoped and path constant value should include namespace. No actual breakage because it never worked before with incorrect value."
       - code: "java.class.removed"
         old: "class org.apache.iceberg.PartitionStatsUtil"
         justification: "Removing deprecated code for 1.11.0"
diff --git a/core/src/main/java/org/apache/iceberg/rest/ResourcePaths.java b/core/src/main/java/org/apache/iceberg/rest/ResourcePaths.java
index d5c11f6052..275a87e968 100644
--- a/core/src/main/java/org/apache/iceberg/rest/ResourcePaths.java
+++ b/core/src/main/java/org/apache/iceberg/rest/ResourcePaths.java
@@ -38,9 +38,12 @@ public class ResourcePaths {
   public static final String V1_TABLE_METRICS =
       "/v1/{prefix}/namespaces/{namespace}/tables/{table}/metrics";
   public static final String V1_TABLE_RENAME = "/v1/{prefix}/tables/rename";
-  public static final String V1_TABLE_SCAN_PLAN_SUBMIT = "/v1/{prefix}/tables/{table}/plan";
-  public static final String V1_TABLE_SCAN_PLAN = "/v1/{prefix}/tables/{table}/plan/{plan-id}";
-  public static final String V1_TABLE_SCAN_PLAN_TASKS = "/v1/{prefix}/tables/{table}/tasks";
+  public static final String V1_TABLE_SCAN_PLAN_SUBMIT =
+      "/v1/{prefix}/namespaces/{namespace}/tables/{table}/plan";
+  public static final String V1_TABLE_SCAN_PLAN =
+      "/v1/{prefix}/namespaces/{namespace}/tables/{table}/plan/{plan-id}";
+  public static final String V1_TABLE_SCAN_PLAN_TASKS =
+      "/v1/{prefix}/namespaces/{namespace}/tables/{table}/tasks";
   public static final String V1_TRANSACTIONS_COMMIT = "/v1/{prefix}/transactions/commit";
   public static final String V1_VIEWS = "/v1/{prefix}/namespaces/{namespace}/views";
   public static final String V1_VIEW = "/v1/{prefix}/namespaces/{namespace}/views/{view}";