You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let write_settings = DuckDBWriteSettings::from_params(&options);
517
-
518
-
let table_writer_builder = DuckDBTableWriterBuilder::new()
519
-
.with_table_definition(table_definition)
520
-
.with_pool(pool)
521
-
.set_on_conflict(on_conflict)
522
-
.with_write_settings(write_settings);
523
-
524
513
let read_provider = Arc::new(DuckDBTable::new_with_schema(
525
514
&dyn_pool,
526
-
schema,
515
+
Arc::clone(&schema),
527
516
TableReference::bare(name.clone()),
528
517
None,
529
518
Some(self.dialect.clone()),
@@ -809,7 +798,7 @@ pub(crate) mod tests {
809
798
usecrate::duckdb::write::DuckDBTableWriter;
810
799
811
800
usesuper::*;
812
-
use arrow::datatypes::{DataType,Field,Schema,TimeUnit};
801
+
use arrow::datatypes::{DataType,Field,Schema};
813
802
use datafusion::common::{Constraints,ToDFSchema};
814
803
use datafusion::logical_expr::CreateExternalTable;
815
804
use datafusion::prelude::SessionContext;
@@ -1128,57 +1117,4 @@ pub(crate) mod tests {
1128
1117
assert_eq!(e.to_string(),"External error: Query execution failed.\nInvalid Input Error: Failed to cast value: Could not convert string 'invalid' to BOOL\nFor details, refer to the DuckDB manual: https://duckdb.org/docs/");
1129
1118
}
1130
1119
}
1131
-
1132
-
/// Verifies the read provider advertises actual DuckDB storage types,
0 commit comments