sql: Incorrect results when deleting rows from table with index column being dropped #33361
Labels
A-sql-mutations
Mutation statements: UPDATE/INSERT/UPSERT/DELETE.
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
S-3-erroneous-edge-case
Database produces or stores erroneous data without visible error/warning, in rare edge cases.
The bug occurs when a column being dropped is part of an index. In that case, it is incorrectly projected by the RETURNING clause.
EXPECTED: Since column
y
was dropped, it should not be part of the results.ACTUAL: Column
y
is projected in the result because it is part of an index. If there is no index, then the correct results are returned.The text was updated successfully, but these errors were encountered: