Skip to content

Commit

Permalink
Fix DuckDBDialect creation according to DataFusion DuckDBDialect update
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrebnov committed Dec 20, 2024
1 parent 91f92f5 commit 33f13ce
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ postgres-federation = ["postgres"]
datafusion-federation = { git = "https://github.com/spiceai/datafusion-federation.git", rev = "5af0df83c2cd1d3f82f293b066b401a4dfd4064b" }
duckdb = { git = "https://github.com/spiceai/duckdb-rs.git", rev = "d6f8c3e0dc1ba073a86756eba4dacf044dfa892d" }

datafusion = { git = "https://github.com/spiceai/datafusion.git", rev = "aaa46be22cff778e0e618b5eaeee3c2830d4e7ee"}
datafusion-expr = { git = "https://github.com/spiceai/datafusion.git", rev = "aaa46be22cff778e0e618b5eaeee3c2830d4e7ee"}
datafusion-physical-expr = { git = "https://github.com/spiceai/datafusion.git", rev = "aaa46be22cff778e0e618b5eaeee3c2830d4e7ee"}
datafusion-physical-plan = { git = "https://github.com/spiceai/datafusion.git", rev = "aaa46be22cff778e0e618b5eaeee3c2830d4e7ee"}
datafusion-proto = { git = "https://github.com/spiceai/datafusion.git", rev = "aaa46be22cff778e0e618b5eaeee3c2830d4e7ee"}
datafusion = { git = "https://github.com/spiceai/datafusion.git", rev = "37f0f144650db9e07a09c02fdbb69179438316be"}
datafusion-expr = { git = "https://github.com/spiceai/datafusion.git", rev = "37f0f144650db9e07a09c02fdbb69179438316be"}
datafusion-physical-expr = { git = "https://github.com/spiceai/datafusion.git", rev = "37f0f144650db9e07a09c02fdbb69179438316be"}
datafusion-physical-plan = { git = "https://github.com/spiceai/datafusion.git", rev = "37f0f144650db9e07a09c02fdbb69179438316be"}
datafusion-proto = { git = "https://github.com/spiceai/datafusion.git", rev = "37f0f144650db9e07a09c02fdbb69179438316be"}
4 changes: 2 additions & 2 deletions src/duckdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ impl DuckDBTableProviderFactory {
access_mode,
instances: Arc::new(Mutex::new(HashMap::new())),
invalid_type_action: InvalidTypeAction::Error,
dialect: Arc::new(DuckDBDialect {}),
dialect: Arc::new(DuckDBDialect::new()),
}
}

Expand Down Expand Up @@ -509,7 +509,7 @@ impl DuckDBTableFactory {
pub fn new(pool: Arc<DuckDbConnectionPool>) -> Self {
Self {
pool,
dialect: Arc::new(DuckDBDialect {}),
dialect: Arc::new(DuckDBDialect::new()),
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/duckdb/sql_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl<T, P> DuckDBTable<T, P> {
table_reference,
Some(Engine::DuckDB),
)
.with_dialect(dialect.unwrap_or(Arc::new(DuckDBDialect {})));
.with_dialect(dialect.unwrap_or(Arc::new(DuckDBDialect::new())));

Self {
base_table,
Expand Down

0 comments on commit 33f13ce

Please sign in to comment.