Skip to content

[spark] Add Spark procedure for branch merge#7930

Merged
JingsongLi merged 1 commit into
apache:masterfrom
JunRuiLee:branch_merge_spark
May 22, 2026
Merged

[spark] Add Spark procedure for branch merge#7930
JingsongLi merged 1 commit into
apache:masterfrom
JunRuiLee:branch_merge_spark

Conversation

@JunRuiLee
Copy link
Copy Markdown
Contributor

Purpose

Add a Spark procedure for merging changes from one branch into another Paimon branch.

Changes

  • Add a new branch merge procedure for Spark.
  • Support invoking branch merge through Spark SQL procedure calls.
  • Add procedure argument handling and validation for branch merge inputs.

Tests

  • Added Spark procedure coverage for branch merge.

Add MergeBranchProcedure and register it in SparkProcedures.

Usage: CALL sys.merge_branch(table => 'db.table',
         source_branch => 'branch', target_branch => 'main')
The target_branch parameter defaults to 'main' if omitted.

Add tests and procedure documentation.
@JingsongLi
Copy link
Copy Markdown
Contributor

+1

@JingsongLi JingsongLi merged commit 1eae414 into apache:master May 22, 2026
13 checks passed
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.

2 participants