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

Delete dropping data but not index entry #52

Open
sanketsarang opened this issue Aug 16, 2019 · 0 comments
Open

Delete dropping data but not index entry #52

sanketsarang opened this issue Aug 16, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@sanketsarang
Copy link
Contributor

The delete query properly deletes the data, but retains the index entry for the deleted record. This causes select distinct to give inconsistent results.

delete from ds.collection where code = '123'

Now run a select distinct on the table for code

select distinct code from ds.collection

The code 123 is present in the response.

However the data is actually not present, so the delete has properly executed

select * from ds.collection where code = '123`

The above statement will return 0 rows, thereby making the select distinct operation return inconsistent results.

@sanketsarang sanketsarang changed the title Delete dropping data by not index entry Delete dropping data but not index entry Aug 17, 2019
@sanketsarang sanketsarang added the bug Something isn't working label Aug 19, 2019
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