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

Function ctx_and_codec

datafusion/ffi/tests/utils/mod.rs:32–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30// for upcoming FFI test expansions.
31#[cfg_attr(not(feature = "integration-tests"), expect(dead_code))]
32pub fn ctx_and_codec() -> (Arc<SessionContext>, FFI_LogicalExtensionCodec) {
33 let ctx = Arc::new(SessionContext::default());
34 let task_ctx_provider = Arc::clone(&ctx) as Arc<dyn TaskContextProvider>;
35 let task_ctx_provider = FFI_TaskContextProvider::from(&task_ctx_provider);
36 let codec = FFI_LogicalExtensionCodec::new(
37 Arc::new(DefaultLogicalExtensionCodec {}),
38 None,
39 task_ctx_provider,
40 );
41
42 (ctx, codec)
43}

Callers 6

test_table_providerFunction · 0.85
test_catalogFunction · 0.85
test_catalog_listFunction · 0.85

Calls 1

newFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…