WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Delete dropping data but not index entry #52

@sanketsarang

Description

@sanketsarang

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions