Skip to content

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

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

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 4 times, most recently from 4ed9f65 to 7d622a7 Compare September 15, 2026 10:25
@plusplusjiajia
plusplusjiajia force-pushed the rest-management-procedures branch from 7d622a7 to 9fbdea6 Compare September 20, 2026 16:57
@plusplusjiajia
plusplusjiajia marked this pull request as ready for review September 20, 2026 16:58
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