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

Function setup_sql_context

crates/integrations/datafusion/tests/common/mod.rs:45–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44#[allow(dead_code)]
45pub async fn setup_sql_context() -> (TempDir, SQLContext) {
46 let (tmp, catalog) = create_test_env();
47 let sql_context = create_sql_context(catalog).await;
48 sql_context
49 .sql("CREATE SCHEMA paimon.test_db")
50 .await
51 .expect("CREATE SCHEMA failed");
52 (tmp, sql_context)
53}
54
55#[allow(dead_code)]
56pub async fn collect_id_name(sql_context: &SQLContext, sql: &str) -> Vec<(i32, String)> {

Calls 3

create_test_envFunction · 0.70
create_sql_contextFunction · 0.70
sqlMethod · 0.45

Tested by

no test coverage detected