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

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

@sanketsarang

Description

@sanketsarang

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.

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