MCPcopy Create free account
hub / github.com/apache/paimon-rust / create_context

Function create_context

crates/integrations/datafusion/tests/read_tables.rs:42–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42async fn create_context() -> SQLContext {
43 let catalog = create_catalog();
44 let catalog: Arc<dyn Catalog> = Arc::new(catalog);
45 let mut ctx = SQLContext::new();
46 ctx.register_catalog("paimon", catalog)
47 .await
48 .expect("Failed to register catalog");
49 ctx
50}
51
52async fn create_provider(table_name: &str) -> PaimonTableProvider {
53 let catalog = create_catalog();

Calls 2

create_catalogFunction · 0.70
register_catalogMethod · 0.45

Tested by

no test coverage detected