Skip to content

feat(datafusion): add create_branch SQL procedure - #1250

Open
QuakeWang wants to merge 1 commit into
apache:mainfrom
QuakeWang:create-branch
Open

QuakeWang wants to merge 1 commit into
apache:mainfrom
QuakeWang:create-branch

Conversation

@QuakeWang

Copy link
Copy Markdown
Member

Purpose

SQL supports reading and managing branches, but creation requires the Core API.

Brief change log

Add sys.create_branch for schema-only and tag-based branches from non-REST main FileStore tables, reusing Core behavior.

Support ignore_if_exists and reject invalid names and unsupported sources before writing.

Tests

99 SQL tests (TZ=UTC) and 5 Core tests passed. Rust 1.98.0 formatting and scoped Clippy passed.

API and Format

Adds a SQL procedure. No Rust API or storage format changes.

Documentation

Updated docs/src/sql.md.

Expose Core branch creation through SQL for non-REST main tables.
Support empty and tag-based branches with ignore_if_exists, including
retained tags whose live snapshots have expired.

Reject invalid names and unsupported sources before writing. Add SQL
end-to-end tests and document the supported scope.

Signed-off-by: QuakeWang <wangfuzheng0814@foxmail.com>
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