()
| 27 | use arrow_array::{Array, RecordBatch, UInt64Array}; |
| 28 | |
| 29 | pub fn create_test_env() -> (TempDir, Arc<FileSystemCatalog>) { |
| 30 | let temp_dir = TempDir::new().expect("Failed to create temp dir"); |
| 31 | let warehouse = format!("file://{}", temp_dir.path().display()); |
| 32 | let mut options = Options::new(); |
| 33 | options.set(CatalogOptions::WAREHOUSE, warehouse); |
| 34 | let catalog = FileSystemCatalog::new(options).expect("Failed to create catalog"); |
| 35 | (temp_dir, Arc::new(catalog)) |
| 36 | } |
| 37 | |
| 38 | pub async fn create_sql_context(catalog: Arc<FileSystemCatalog>) -> SQLContext { |
| 39 | let mut ctx = SQLContext::new(); |
no test coverage detected