herefree opened a new issue, #4166: URL: https://github.com/apache/paimon/issues/4166
### Search before asking - [X] I searched in the [issues](https://github.com/apache/paimon/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.  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! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
