You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should make MergeIterator be able to accept a vector of sort_idx. For example, sort_key_idx = [2, 1, 0]:
Implies that the child iterators are already being sorted using 3 columns: firstly be column #2, then by column #1, at last by #0.
*MergeIterator should also sort by this rule.
After we finish the refactor in the storage layer, we can firstly make all places to pass vec![sort_key] instead of sort_key. Then, we can refactor little by little to support full composite sort key support across our system.
The text was updated successfully, but these errors were encountered:
Currently,
MergeIterator
only supports taking a singlesort_idx
as parameter:risinglight/src/storage/secondary/merge_iterator.rs
Lines 34 to 36 in 7c5e0d5
We should make
MergeIterator
be able to accept a vector ofsort_idx
. For example,sort_key_idx = [2, 1, 0]
:#2
, then by column#1
, at last by#0
.*MergeIterator should also sort by this rule.
After we finish the refactor in the storage layer, we can firstly make all places to pass
vec![sort_key]
instead ofsort_key
. Then, we can refactor little by little to support full composite sort key support across our system.The text was updated successfully, but these errors were encountered: