Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
DataValue::Tuple
addis_upper
the
is_upper
attached to theTuple
is used to represent the smaller number of values of the tuple, indicating lower or upper. e.g.(1, 2, 3, is_upper: true) > (1, 2, 3, 4, is_upper: true or false)
In this way, the semantics are expressed when there are multiple columns in the index and the upper of the predicate expression range at the end is unbound.
e.g.index(c1, c2),
select * from t1 where c1 = 0 and c2 > 0
=> index range:(lower: (0, 0), upper: (0))
This feature makes the inference of index range more accurate and greatly improves the hit case of composite index.
Issue link: #155
Tpcc Statment Explain
add test
explain_tpcc
ontpcc/src/main.rs
for make sure all query statement use indexTpmc is 6669 now!
Code changes
Check List
Tests
Side effects
Note for reviewer