Skip to content

feat(datafusion): add REST management procedures - #837

Draft
plusplusjiajia wants to merge 1 commit into
apache:mainfrom
plusplusjiajia:rest-management-procedures
Draft

plusplusjiajia wants to merge 1 commit into
apache:mainfrom
plusplusjiajia:rest-management-procedures

Conversation

@plusplusjiajia

@plusplusjiajia plusplusjiajia commented Sep 15, 2026

Copy link
Copy Markdown
Member

Purpose

Ports apache/paimon#9410 to Rust: six CALL sys.* procedures putting the REST management API (#820, #829) behind SQL. Java chose procedures over DDL, and its SQL extension grammar has no GRANT/REVOKE/POLICY at all.

What it adds

CALL sys.grant_permission(resource_type => 'TABLE', database => 'sales',
                          table => 'orders', access => 'SELECT',
                          principal => 'user:alice')

plus revoke_permission, list_permissions, create_policy, drop_policy and list_policies. Procedure names, parameter names and optionality, and the two result schemas follow Java field for field.

Testing

Nineteen tests against the mock REST server, and an end-to-end run against a live Aliyun DLF catalog covering all six procedures, both paging filters, both if_exists paths and the duplicate-policy 409.

@plusplusjiajia
plusplusjiajia force-pushed the rest-management-procedures branch from 9aadc02 to 5b4e8b8 Compare September 15, 2026 05:54
@plusplusjiajia
plusplusjiajia force-pushed the rest-management-procedures branch from 5b4e8b8 to 7280dbf Compare September 15, 2026 07:52
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