CREATE BRANCH Preview
Create a new branch that is based on the current one that you are in.
SyntaxCREATE BRANCH [ IF NOT EXISTS ] <branch_name>
[ AT { REF[ERENCE] | BRANCH | TAG | COMMIT } <refValue> ]
[ IN <catalog_name> ]
Parameters
{{< sql-section file="data/sql/branches.json" data="creatingABranch" >}}
Examples
Create a branchCREATE BRANCH myBranch
CREATE BRANCH myBranch
AT COMMIT "c7a79c74adf76649e643354c34ed69abfee5a3b070ef68cbe782a072b0a418ba"
CREATE BRANCH myBranch
AT BRANCH anotherBranch
IN myCatalog