On this page

    SHOW LOGS preview

    Shows the commit history or log of the catalog or the selected reference. This command is similar to the git log command.

    Syntax
    SHOW LOGS
       [ AT { REF[ERENCE] | BRANCH | TAG | COMMIT } <refValue> ]
       [ IN <catalog_name> ]
    

    Parameters

    AT ( REF[ERENCE] | BRANCH | TAG | COMMIT ) <refValue>

    String

    Optional

    Specifies the reference for which you want to show the commit history. When this parameter is omitted, the current reference is used.

    • REF: Identifies a specific branch, tag, or commit.

    • BRANCH: Identifies the branch.

    • TAG: Identifies the tag.

    • COMMIT: Identifies the commit. Commit hashes must be enclosed in double quotes (for example, “ff2fe50fef5a030c4fc8e61b252bdc33c72e2b6f929d813833d998b8368302e2”).


    IN <catalog_name>

    String

    Optional

    The name of the Arctic catalog used. When this parameter is omitted, the current Arctic catalog in the query context is used.

    Examples

    Show the commit history of the current catalog
    SHOW LOGS
    
    Show the commit history for the specified branch
    SHOW LOGS
      AT BRANCH myBranch
    
    Show the commit history from the specified commit in the specified catalog
    SHOW LOGS
      AT COMMIT "c7a79c74adf76649e643354c34ed69abfee5a3b070ef68cbe782a072b0a418ba"
      in myCatalog