Skip to content

Core: Fix validation of PlanTableScanRequest#14561

Merged
singhpk234 merged 1 commit into
apache:mainfrom
nastra:server-side-planning-request-fixes
Nov 11, 2025
Merged

Core: Fix validation of PlanTableScanRequest#14561
singhpk234 merged 1 commit into
apache:mainfrom
nastra:server-side-planning-request-fixes

Conversation

@nastra

@nastra nastra commented Nov 11, 2025

Copy link
Copy Markdown
Contributor

The OpenAPI spec says in https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml#L618-L624 that if no snapshotId is provided, the server can select the latest snapshot in the table's main branch. However, currently the request always requires to set either the snapshotId or the startSnapshotId/endSnapshotId

.toString();
}

public static Builder builder() {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this makes sure that the builder is always created through a static method (and aligns it with the rest of the codebase)

Comment thread core/src/main/java/org/apache/iceberg/rest/requests/PlanTableScanRequest.java Outdated
The OpenAPI spec says in https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml#L618-L624
that if no snapshotId is provided, the server can select the latest snapshot in the table's main branch. However, currently the request always requires to set either the `snapshotId` or the `startSnapshotId`/`endSnapshotId`
@nastra nastra force-pushed the server-side-planning-request-fixes branch from 228c66b to bb73543 Compare November 11, 2025 16:54
@singhpk234

Copy link
Copy Markdown
Contributor

LGTM, thanks for the change and nice catch @nastra !

@singhpk234 singhpk234 merged commit 7368e59 into apache:main Nov 11, 2025
44 checks passed
@nastra nastra deleted the server-side-planning-request-fixes branch November 12, 2025 06:41
nastra added a commit to nastra/iceberg that referenced this pull request Nov 12, 2025
The OpenAPI spec says in https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml#L618-L624
that if no snapshotId is provided, the server can select the latest snapshot in the table's main branch. However, currently the request always requires to set either the `snapshotId` or the `startSnapshotId`/`endSnapshotId`
@nastra nastra added this to the Iceberg 1.10.1 milestone Nov 12, 2025
nastra added a commit that referenced this pull request Nov 12, 2025
* Core: Fix validation of PlanTableScanRequest (#14561)

The OpenAPI spec says in https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml#L618-L624
that if no snapshotId is provided, the server can select the latest snapshot in the table's main branch. However, currently the request always requires to set either the `snapshotId` or the `startSnapshotId`/`endSnapshotId`

* Core: Fix PlanTableScanResponse validation (#14562)

The OpenAPI spec indicates in https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml#L3376-L3384 that a `completed` planning result can have a `planId`
thomaschow pushed a commit to thomaschow/iceberg that referenced this pull request Jan 19, 2026
The OpenAPI spec says in https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml#L618-L624
that if no snapshotId is provided, the server can select the latest snapshot in the table's main branch. However, currently the request always requires to set either the `snapshotId` or the `startSnapshotId`/`endSnapshotId`
talatuyarer pushed a commit to talatuyarer/iceberg that referenced this pull request Apr 1, 2026
The OpenAPI spec says in https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml#L618-L624
that if no snapshotId is provided, the server can select the latest snapshot in the table's main branch. However, currently the request always requires to set either the `snapshotId` or the `startSnapshotId`/`endSnapshotId`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants