Repository navigation
[Server] Expect READ METADATA in the shared-parents batch test - #2137
Merged
timothyw553 merged 1 commit intoNov 6, 2026
Merged
Conversation
unitycatalog#2105 added batchChecksSharedParentsOncePerList on a base without unitycatalog#2086, which changed GET_TABLE's parent checks to authorizeAny(OWNER, READ_METADATA). On main the test fails with "Wanted authorize(..., metastore, ..., OWNER), actual authorizeAny(..., metastore, ..., OWNER, READ METADATA)". The test now verifies the checks GET_TABLE makes on main. It still checks that each shared parent check runs once for the list. Signed-off-by: Shubham Bansal <[email protected]> Co-authored-by: Isaac <[email protected]>
shba24
requested review from
openinx,
tdas,
timothyw553 and
yili-db
as code owners
November 5, 2026 23:11
Collaborator
Author
|
/review |
yili-db
approved these changes
Nov 5, 2026
timothyw553
approved these changes
Nov 6, 2026
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Checklist
docsis updatedDescription of changes
main's unit tests fail onUnityAccessEvaluatorTest.batchChecksSharedParentsOncePerList, on H2, PostgreSQL and MySQL. Every open PR's "All tests" job fails with it, because CI tests each PR merged withmain.#2105 added the test on a base that did not have #2086 yet. #2086 changed
GET_TABLE's parent checks fromauthorize(OWNER)toauthorizeAny(OWNER, READ_METADATA), so onmainthe test fails with:The test now verifies the checks that
GET_TABLEmakes onmain. It still checks what #2105 meant it to check: each shared parent check runs once for the whole list, and only the table's own check runs per item. Test-only change.Tested:
build/sbt "server/testOnly io.unitycatalog.server.auth.decorator.UnityAccessEvaluatorTest", 37/37 pass. Before the change, the test fails on cleanmain(6e752d4).This pull request and its description were written by Isaac.