Skip to content

Update query to set an inexistent field misses updating index entry for new field #37

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

Open
sanketsarang opened this issue Jun 3, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@sanketsarang
Copy link
Contributor

Index not getting updated on running an UPDATE SQL query to set a field that was not originally present on the record being updated.

Existing record
1: {'col1': 1, 'col2': 1}
2: {'col1': 2, 'col3': 2}

Run SQL Update
UPDATE test.test SET col3 = 1 WHERE col1 = 1

Updated Records
1: {'col1': 1, 'col2': 1, 'col3': 1}
2: {'col1': 2, 'col3': 2}

However the index entry for col3 for record #1 does not update. The entire column has to be reindexed after this operation.

@sanketsarang sanketsarang added the bug Something isn't working label Jun 3, 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