Repository navigation
feat(table): expose whether a DataSplit requires query authorization - #1538
Open
dragonknightk wants to merge 2 commits into
Open
dragonknightk wants to merge 2 commits into
dragonknightk wants to merge 2 commits into
Conversation
### Purpose Closes issue 1463 A custom reader that consumes a transported DataSplit needs to know whether the split requires catalog authorization before opening its files. has_query_auth_rules() only reports row filters or column masks, so an unrestricted response still looks like it needs no authorization. ### Brief change log Expose the existing DataSplit::query_auth_required accessor. The flag is already stored and survives serialization. ### Tests The new test transports splits through serde. After transport, query_auth_required() is true in all five cases. has_query_auth_rules() is false for an unrestricted response, an empty filter and mask, and a missing response, and true for a row filter and a column mask. An ordinary split has both false. ### API and Format This adds a public accessor for an existing field. The storage and serialization format is unchanged. ### Documentation The accessor is documented on DataSplit. No other documentation is added. Signed-off-by: dragonknightk <37928252+dragonknightk@users.noreply.github.com>
…equired-1463 Signed-off-by: dragonknightk <37928252+dragonknightk@users.noreply.github.com>
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.
Purpose
Linked issue: close #1463
A custom reader that consumes a transported DataSplit needs to know whether the split requires catalog authorization before opening its files. has_query_auth_rules() only reports row filters or column masks, so an unrestricted response still looks like it needs no authorization.
Brief change log
Expose the existing DataSplit::query_auth_required accessor. The flag is already stored and survives serialization.
Tests
The new test transports splits through serde. After transport, query_auth_required() is true in all five cases. has_query_auth_rules() is false for an unrestricted response, an empty filter and mask, and a missing response, and true for a row filter and a column mask. An ordinary split has both false.
API and Format
This adds a public accessor for an existing field. The storage and serialization format is unchanged.
Documentation
The accessor is documented on DataSplit. No other documentation is added.
AI Disclosure
Human-led contribution. Grok Bot, working for dragonknightk, assisted with this change, including the code, tests, and description. All submitted content was reviewed by a human before submission.