mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-05 08:10:50 +00:00
* FB-1251: Add ability to sort Extract queries by some field
There is a sort call which takes a row call and the field, and
based on the field type, the corresponding rows are read. both key and
value are stored in RowKV{}. The value is stored since its required to
merge data from shards. values are sorted in each shard and these sorted
listes are merged in the reduce.
sort-desc flag is sent to comparator to decide the sorting order. ok
flag is added to the compare function to track any error in the
sort.Slice anonymous function
Sorting over set field was removed, since there would be multiple values
for each ids and there would be no right sorting order there.
|
||
|---|---|---|
| .. | ||
| ast.go | ||
| ast_test.go | ||
| decimal.go | ||
| decimal_internal_test.go | ||
| decimal_test.go | ||
| doc.go | ||
| parser.go | ||
| parser_test.go | ||
| pql.peg | ||
| pql.peg.go | ||
| pqlpeg_test.go | ||
| token.go | ||