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

Function get_ctx

datafusion/wasmtest/src/lib.rs:115–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113 }
114
115 fn get_ctx() -> Arc<SessionContext> {
116 let rt = RuntimeEnvBuilder::new()
117 .with_disk_manager_builder(
118 DiskManagerBuilder::default().with_mode(DiskManagerMode::Disabled),
119 )
120 .build_arc()
121 .unwrap();
122 let session_config = SessionConfig::new().with_target_partitions(1);
123 Arc::new(SessionContext::new_with_config_rt(session_config, rt))
124 }
125
126 fn create_test_data() -> (Arc<Schema>, RecordBatch) {
127 let schema = Arc::new(Schema::new(vec![

Callers 3

basic_executeFunction · 0.85
test_basic_aggregateFunction · 0.85

Calls 5

newFunction · 0.85
build_arcMethod · 0.80
with_modeMethod · 0.45

Tested by 1

test_basic_aggregateFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…