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

Function create_sql_context

crates/integrations/datafusion/tests/common/mod.rs:38–42  ·  view source on GitHub ↗
(catalog: Arc<FileSystemCatalog>)

Source from the content-addressed store, hash-verified

36}
37
38pub async fn create_sql_context(catalog: Arc<FileSystemCatalog>) -> SQLContext {
39 let mut ctx = SQLContext::new();
40 ctx.register_catalog("paimon", catalog).await.unwrap();
41 ctx
42}
43
44#[allow(dead_code)]
45pub async fn setup_sql_context() -> (TempDir, SQLContext) {

Calls 1

register_catalogMethod · 0.45

Tested by

no test coverage detected