diff --git a/.palantir/revapi.yml b/.palantir/revapi.yml index b8f2176118f7..d9318b5cffcb 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 d5c11f6052f1..275a87e96815 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}";