tonbo-io / tonbo

A portable embedded database using Arrow.
https://tonbo.io
Apache License 2.0
606 stars 42 forks source link

[Draft] Improve projection user experience #133

Open ethe opened 1 week ago

ethe commented 1 week ago

use magic number to specify projection columns makes user confuse:

...
let name = "Alice".into();
let upper = "Bob".into();
let mut scan = txn
    .scan((Bound::Included(&name), Bound::Excluded(&upper)))
    // what `1` means???
    .projection(vec![1])
    .take()
    .await
    .unwrap();
...
dharanad commented 1 week ago

To get started with the project, I would like to pick this issue up. I know its in Draft, but please do share more info sooner later

ethe commented 1 week ago

@dharanad sure, I will complete it, also if you have good ideas about this design, please generously share it 😄