MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / read_multiple_columns

Function read_multiple_columns

nodedb-columnar/src/reader/block_decode.rs:501–515  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

499
500 #[test]
501 fn read_multiple_columns() {
502 let segment = write_test_segment(50);
503 let reader = SegmentReader::open(&segment).expect("open");
504
505 let cols = reader.read_columns(&[0, 2], &[]).expect("read multi");
506 assert_eq!(cols.len(), 2);
507
508 // Column 0 (id): Int64.
509 match &cols[0] {
510 DecodedColumn::Int64 { values, .. } => {
511 assert_eq!(values.len(), 50);
512 }
513 _ => panic!("expected Int64 for id"),
514 }
515 }
516
517 #[test]
518 fn column_out_of_range() {

Callers

nothing calls this directly

Calls 4

write_test_segmentFunction · 0.70
openFunction · 0.50
expectMethod · 0.45
read_columnsMethod · 0.45

Tested by

no test coverage detected