Skip to main content

ALTER TAG Preview

Change the reference that the tag points to.

Syntax
ALTER TAG <tag_name>
ASSIGN { REF[ERENCE] | BRANCH | TAG | COMMIT } <identifier>
[ IN <catalog_name> ]

Parameters

{{< sql-section file="data/sql/tags.json" data="assigningATag" >}}

Examples

Assign the tag to a specific commit
ALTER TAG myTag
ASSIGN COMMIT "c7a79c74adf76649e643354c34ed69abfee5a3b070ef68cbe782a072b0a418ba"
Assign the tag to a specific tag
ALTER TAG myTag
ASSIGN TAG tag1
Assign the tag to a specific branch
ALTER TAG myTag
ASSIGN BRANCH myBranch
IN myCatalog
Assign the tag to a specific reference
ALTER TAG myTag
ASSIGN REF tag2