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

[Bug] Branches Table created_from_snapshot field result error. #4166

Open
1 of 2 tasks
herefree opened this issue Sep 11, 2024 · 0 comments
Open
1 of 2 tasks

[Bug] Branches Table created_from_snapshot field result error. #4166

herefree opened this issue Sep 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@herefree
Copy link
Contributor

herefree commented Sep 11, 2024

Search before asking

  • I searched in the issues and found nothing similar.

Paimon version

master

Compute Engine

flink

Minimal reproduce step

First case

  1. create empty branch.
  2. insert some data to this branch.
  3. select * from t$branches.

Second case

  1. create branch from tag.
  2. delete branch's tag.
  3. wait branch's first snapshot expire.
  4. select * from t$branches.

In above two case,created_from_snapshot both should be null.

What doesn't meet your expectations?

In branches table, if we can't find tag from branches table,we will choose the earliestSnapshotId of branch to be created_from_snapshot.
783a9571-21e7-4d6c-aeca-a7bc55bcf3f8
But if tag not exists,it's hard for us to know whether the earliestSnapshotId of branch is the main branch' snapshot.So I pull request #4159 to fix this issue. created_from_snapshot must from earliestTag of branch.

But it's also have some problem, it's hard for us to know tag is from main branch. For example, if we create empty branch,then insert one data to this branch. Then we create a tag base on this branch's snapshot. create_from_tag and create_from_snaphot both should be null.but we can't judge if this tag is the main branch's tag.

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant