Support for Iceberg SQL UDF#241
Conversation
📝 WalkthroughWalkthroughThis PR adds a new S3TablesFunctionName condition key and seven new S3 Tables TableAction constants for SQL UDF function operations (create, delete, get, rename, update, list, register). These are wired into condition-key mappings, added to default canned policies (tablesReadWrite, tablesReadOnly), and covered by new unit tests. ChangesS3 Tables function actions and condition keys
Estimated code review effort: 2 (Simple) | ~12 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Adds policy-layer support for Iceberg SQL UDFs in the S3 Tables extension surface by introducing new table actions, a new condition key for function name scoping, and wiring these into default policies and validation tests.
Changes:
- Introduce new
s3tables:*Functionactions (CRUD + register/list) and include them in the supported table actions map. - Add the
s3tables:functionNamecondition key and allow it for the relevant actions (and thes3tables:*wildcard action). - Extend default “tablesReadWrite” and “tablesReadOnly” policies and add unit tests covering action validity and condition-key mappings.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| policy/table-action.go | Defines new function-related table actions and maps them to supported condition keys. |
| policy/table-action_test.go | Adds tests for function action validity and condition key set expectations. |
| policy/constants.go | Grants new function actions in default tables policies (read/write + read-only). |
| policy/condition/keyname.go | Introduces S3TablesFunctionName and registers it as a supported condition key. |
| policy/condition/key_test.go | Updates key validation tests to include the new function-name key. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Required changes for Iceberg SQL UDF.
Summary by CodeRabbit
New Features
Bug Fixes