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] Support the creation of tags based on the latest snapshot #2533

Merged
merged 2 commits into from
Dec 25, 2023

Conversation

MonsterChenzhuo
Copy link
Contributor

Purpose

Support the creation of tags based on the latest snapshot.

Tests

API and Format

Documentation


Tuple3<String, String, String> tablePath = getTablePath(params);
Map<String, String> catalogConfig = optionalConfigMap(params, CATALOG_CONF);
String tagName = params.get(TAG_NAME);
long snapshot = Long.parseLong(params.get(SNAPSHOT));

long snapshot = -1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Long snapshot = null;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@@ -108,7 +108,7 @@ You can create a tag with given name (cannot be number) and snapshot ID.
--database <database-name> \
--table <table-name> \
--tag_name <tag-name> \
--snapshot <snapshot-id> \
[--snapshot <snapshot_id>] \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to modify Flink and Spark procedure too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@MonsterChenzhuo MonsterChenzhuo force-pushed the sp2 branch 4 times, most recently from 92e19b0 to 051eb89 Compare December 20, 2023 06:43
@MonsterChenzhuo
Copy link
Contributor Author

MonsterChenzhuo commented Dec 20, 2023

@JingsongLi PTAL,thanks.

Copy link
Contributor

@JingsongLi JingsongLi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@JingsongLi JingsongLi merged commit ea37f62 into apache:master Dec 25, 2023
10 checks passed
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.

2 participants