Skip to content

Commit 675dbb2

Browse files
committed
start prepping for datafusion 46
1 parent 484e74a commit 675dbb2

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ datafusion = { version = "45", default-features = false, features = ["nested_exp
2121
codspeed-criterion-compat = "2.6"
2222
criterion = "0.5.1"
2323
clap = "4"
24-
tokio = { version = "1.38", features = ["full"] }
24+
tokio = { version = "1.43", features = ["full"] }
2525

2626
[lints.clippy]
2727
dbg_macro = "deny"
@@ -34,3 +34,6 @@ pedantic = { level = "deny", priority = -1 }
3434
[[bench]]
3535
name = "main"
3636
harness = false
37+
38+
[patch.crates-io]
39+
datafusion = { git = "https://github.com/apache/datafusion.git", rev = "5239d1ac" }

src/rewrite.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,11 @@ impl std::fmt::Display for JsonOperator {
141141
/// Convert an Expr to a String representatiion for use in alias names.
142142
fn expr_to_sql_repr(expr: &Expr) -> String {
143143
match expr {
144-
Expr::Column(Column { name, relation }) => relation
144+
Expr::Column(Column {
145+
name,
146+
relation,
147+
spans: _,
148+
}) => relation
145149
.as_ref()
146150
.map_or_else(|| name.clone(), |r| format!("{r}.{name}")),
147151
Expr::Alias(alias) => alias.name.clone(),

0 commit comments

Comments
 (0)