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] delete from doesn't work with deletion-vector #4588

Open
1 of 2 tasks
nonggialiang opened this issue Nov 25, 2024 · 0 comments
Open
1 of 2 tasks

[Bug] delete from doesn't work with deletion-vector #4588

nonggialiang opened this issue Nov 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nonggialiang
Copy link

nonggialiang commented Nov 25, 2024

Search before asking

  • I searched in the issues and found nothing similar.

Paimon version

0.8

Compute Engine

flink 1.7

Minimal reproduce step

1、streaming write into a paimon table with deletion-vector enabled
image

2、choose a key in the table and run a batch statement to 'delete from' the paimon table

select * from paimon.test_fts.test_dvdown_1125 where k = '039f61ff8228b6515b88f0dcf1afaec41ccc3fd7614ff4763fa82dfd23455e127036eb152bc444fa34392dd42f92dbbccc67'

3、batch read from the paimon table with the key
image

  • if we run the above select after 'delete from' and before streaming job taking a checkpoint : the output is empty
  • if we run the above select after the checkpoint succeeding 'delete from': the key comes out again

What doesn't meet your expectations?

The key is not deleted successfully.
We can also reproduce the weird issue with batch time travel:
With a snapshots history like below (snapshot 3 and 4 committed by 'delete from' , and others by streaming job)
image

  • time travel read from snapshot 3 (which is append) gets the key
  • time travel read from snapshot 4 (compact) or 5 (append) gets no output
  • time travel read from snapshot 6 (compact) gets the key

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@nonggialiang nonggialiang added the bug Something isn't working label Nov 25, 2024
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