()
| 40 | } |
| 41 | |
| 42 | async 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 | |
| 52 | async fn create_provider(table_name: &str) -> PaimonTableProvider { |
| 53 | let catalog = create_catalog(); |
no test coverage detected