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

Function extract_empty_properties

nodedb/src/engine/graph/olap/columns.rs:449–473  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

447
448 #[test]
449 fn extract_empty_properties() {
450 let dir = tempfile::tempdir().unwrap();
451 let store =
452 crate::engine::graph::edge_store::EdgeStore::open(&dir.path().join("graph.redb"))
453 .unwrap();
454
455 use crate::engine::graph::edge_store::EdgeRef;
456 store
457 .put_edge_versioned(
458 EdgeRef::new(nodedb_types::TenantId::new(1), "col", "a", "L", "b"),
459 b"",
460 1,
461 1,
462 i64::MAX,
463 )
464 .unwrap();
465
466 let csr = crate::engine::graph::csr::rebuild::rebuild_from_store(&store).unwrap();
467 let columns =
468 extract_edge_properties(&store, &csr, nodedb_types::TenantId::new(1), &["weight"])
469 .unwrap();
470
471 // No properties extracted.
472 assert!(columns.f64_columns.is_empty());
473 }
474}

Callers

nothing calls this directly

Calls 6

rebuild_from_storeFunction · 0.85
extract_edge_propertiesFunction · 0.85
joinMethod · 0.80
put_edge_versionedMethod · 0.80
openFunction · 0.50
pathMethod · 0.45

Tested by

no test coverage detected