Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Flink]Add flink action for creating and deleting branch #2868

Closed

Conversation

herefree
Copy link
Contributor

@herefree herefree commented Feb 16, 2024

Purpose

subtask of #1795

Tests

org.apache.paimon.flink.action.BranchActionITCase#testCreateAndDeleteBranch

API and Format

Documentation

Delete Branch

You can delete a branch by its name.

Run the following command:

<FLINK_HOME>/bin/flink run \
    /path/to/paimon-flink-action.jar \
    delete_branch \
    --warehouse <warehouse-path> \
    --database <database-name> \ 
    --table <table-name> \
    --branch_name <branch-name> \
    [--catalog_conf <paimon-catalog-conf> [--catalog_conf <paimon-catalog-conf> ...]]

Create Branch

You can create a branch with given name and tag name.
Run the following command:

<FLINK_HOME>/bin/flink run \
    /path/to/paimon-flink-action.jar \
    create_branch \
    --warehouse <warehouse-path> \
    --database <database-name> \ 
    --table <table-name> \
    --branch_name <branch-name> \
    --tag_name <tag-name> \
    [--catalog_conf <paimon-catalog-conf> [--catalog_conf <paimon-catalog-conf> ...]]

@herefree
Copy link
Contributor Author

herefree commented Feb 16, 2024

@TaoZex @FangYongs @schnappi17 help review thanks~

@TaoZex
Copy link
Contributor

TaoZex commented Feb 20, 2024

Please add the corresponding content in the doc.

@herefree
Copy link
Contributor Author

Please add the corresponding content in the doc.

Which document should I write in? Currently, I have not found any document that introduces branches.

@herefree
Copy link
Contributor Author

@TaoZex I added some comments above, do you think this is okay?

@schnappi17
Copy link
Contributor

@herefree We can create a doc to guide Manage Branches, you can see Manage Tags.

@herefree herefree closed this Jun 27, 2024
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.

3 participants