MCPcopy Create free account
hub / github.com/apache/datafusion / register_test_store

Function register_test_store

datafusion/core/src/test/object_store.rs:42–45  ·  view source on GitHub ↗

Registers a test object store with the provided `ctx`

(ctx: &SessionContext, files: &[(&str, u64)])

Source from the content-addressed store, hash-verified

40
41/// Registers a test object store with the provided `ctx`
42pub fn register_test_store(ctx: &SessionContext, files: &[(&str, u64)]) {
43 let url = Url::parse("test://").unwrap();
44 ctx.register_object_store(&url, make_test_store_and_state(files).0);
45}
46
47/// Create a test object store with the provided files
48pub fn make_test_store_and_state(files: &[(&str, u64)]) -> (Arc<InMemory>, SessionState) {

Calls 2

register_object_storeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…