Skip to content

[api] Add authTableQuery method to RESTApi#498

Open
plusplusjiajia wants to merge 1 commit into
apache:mainfrom
plusplusjiajia:query-auth-rest-client
Open

[api] Add authTableQuery method to RESTApi#498
plusplusjiajia wants to merge 1 commit into
apache:mainfrom
plusplusjiajia:query-auth-rest-client

Conversation

@plusplusjiajia

Copy link
Copy Markdown
Member

Purpose

Add the REST client side of the authTableQuery endpoint, which returns the
per-user row filter and column masking for a query-auth.enabled table
(follow-up to #447). This PR is wire-level only — no read-path changes;
enforcement comes in follow-up PRs.

Changes

  • AuthTableQueryRequest (projected columns) and AuthTableQueryResponse
    (filter / columnMasking) wire types, matching the Java definitions
  • ResourcePaths::auth_table: .../databases/{db}/tables/{table}/auth
  • RESTApi::auth_table_query: POSTs the request and returns the response

Tests

  • Serde tests pinning the wire field names and {} → unrestricted
  • Path-encoding and request-body serialization tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant