opt: do not pass along non-inverted prefix columns from left inverted join #58163
Labels
A-sql-optimizer
SQL logical planning and optimizations.
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
The optimizer outputs non-inverted prefix columns in inverted joins on multi-column indexes. This column will passthrough the parent left lookup join, yielding incorrect results. In a left inverted join, only the primary key columns should be output. The rest of the columns must be fetched in the left lookup join.
The text was updated successfully, but these errors were encountered: