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

Function test_table_with_cache_factory

datafusion/core/src/test_util/mod.rs:340–348  ·  view source on GitHub ↗

Create a test table registered to a session context with an associated cache factory

()

Source from the content-addressed store, hash-verified

338
339/// Create a test table registered to a session context with an associated cache factory
340pub async fn test_table_with_cache_factory() -> Result<DataFrame> {
341 let session_state = SessionStateBuilder::new()
342 .with_cache_factory(Some(Arc::new(TestCacheFactory {})))
343 .build();
344 let ctx = SessionContext::new_with_state(session_state);
345 let name = "aggregate_test_100";
346 register_aggregate_csv(&ctx, name).await?;
347 ctx.table(name).await
348}

Callers 1

cache_producer_testFunction · 0.85

Calls 5

newFunction · 0.85
with_cache_factoryMethod · 0.80
register_aggregate_csvFunction · 0.70
buildMethod · 0.45
tableMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…