roryqi opened a new pull request, #14779:
URL: https://github.com/apache/gravitino/pull/14779
### What changes were proposed in this pull request?
- Access scan response partition specs through cached dynamic calls
compatible with both standard and experimental Iceberg runtimes.
- Reject `TAG_VALUE` policy selectors that violate a tag's allowed values
before storing the association.
### Why are the changes needed?
Experimental scan planning throws `IllegalAccessError`, and invalid tag
selectors create policy associations that can never match.
Fixes #14749
Fixes #14424
### Does this PR introduce _any_ user-facing change?
Experimental scan planning and credential copying succeed. Invalid tag
selector values return HTTP 400.
### How was this patch tested?
Added shared scan response tests for both Iceberg runtimes and regression
coverage for tag value constraints and REST errors. All 238 targeted tests
passed, along with Spotless and `git diff --check`.
```bash
./gradlew \
:core:test --tests '*TestTagManager' \
:server:test --tests '*TestTagOperations' \
:iceberg:iceberg-rest-server:test \
--tests '*TestIcebergScanResponses' \
--tests '*TestIcebergScanPlanning' \
--tests '*TestCatalogWrapperForREST' \
--tests '*TestIcebergRESTUtils' \
--tests '*TestIcebergTableOperations.testPlanTableScan*' \
:iceberg:iceberg-rest-server-experiment:test -PskipITs
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]