-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 'fix: index seek wrong on
SeekOp::LT
\SeekOp::GT
' from Kould
data does not match predicate when using index, e.g: `select id, age from users where age > 90 limit 1;` will return data with age 90 the reason is that the current index seek directly uses record for comparison, but the record of the index itself is longer than the record of the key (because it contains the primary key), so Gt is invalid. since only single-column indexes are currently supported: #350, only the first value of the record is currently used for comparison. Reviewed-by: Jussi Saurio <[email protected]> Closes #593
- Loading branch information
Showing
2 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters