Skip to main content

MERGE BRANCH Preview

Merge a (source) branch into the current branch that you are in by default, or into a target branch that you specify.

Syntax
MERGE BRANCH <source_branch_name>
[ INTO <target_branch_name> ]
[ IN <catalog_name> ]

Parameters

{{< sql-section file="data/sql/branches.json" data="mergingABranch" >}}

Examples

Merge a branch you specify into the current reference branch
MERGE BRANCH myBranch
Merge a branch you specify into another branch in the specified catalog
MERGE BRANCH myBranch
INTO main
IN myCatalog