Skip to content

Commit a54201a

Browse files
committedNov 12, 2023
Use latest DF 33 branch
1 parent e4942b8 commit a54201a

File tree

3 files changed

+45
-48
lines changed

3 files changed

+45
-48
lines changed
 

‎Cargo.lock

Lines changed: 35 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ substrait = ["dep:datafusion-substrait"]
3737
tokio = { version = "1.24", features = ["macros", "rt", "rt-multi-thread", "sync"] }
3838
rand = "0.8"
3939
pyo3 = { version = "0.20", features = ["extension-module", "abi3", "abi3-py38"] }
40-
datafusion = { git = "https://github.com/apache/arrow-datafusion", rev = "33.0.0-rc1", features = ["pyarrow", "avro"] }
41-
datafusion-common = { git = "https://github.com/apache/arrow-datafusion", rev = "33.0.0-rc1", features = ["pyarrow"] }
42-
datafusion-expr = { git = "https://github.com/apache/arrow-datafusion", rev = "33.0.0-rc1" }
43-
datafusion-optimizer = { git = "https://github.com/apache/arrow-datafusion", rev = "33.0.0-rc1" }
44-
datafusion-sql = { git = "https://github.com/apache/arrow-datafusion", rev = "33.0.0-rc1" }
45-
datafusion-substrait = { git = "https://github.com/apache/arrow-datafusion", rev = "33.0.0-rc1", optional = true }
40+
datafusion = { git = "https://github.com/apache/arrow-datafusion", branch = "branch-33", features = ["pyarrow", "avro"] }
41+
datafusion-common = { git = "https://github.com/apache/arrow-datafusion", branch = "branch-33", features = ["pyarrow"] }
42+
datafusion-expr = { git = "https://github.com/apache/arrow-datafusion", branch = "branch-33" }
43+
datafusion-optimizer = { git = "https://github.com/apache/arrow-datafusion", branch = "branch-33" }
44+
datafusion-sql = { git = "https://github.com/apache/arrow-datafusion", branch = "branch-33" }
45+
datafusion-substrait = { git = "https://github.com/apache/arrow-datafusion", branch = "branch-33", optional = true }
4646
prost = "0.12"
4747
prost-types = "0.12"
4848
uuid = { version = "1.3", features = ["v4"] }

‎src/expr.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,7 @@ impl PyExpr {
265265
pub fn rex_type(&self) -> PyResult<RexType> {
266266
Ok(match self.expr {
267267
Expr::Alias(..) => RexType::Alias,
268-
Expr::Column(..) | Expr::QualifiedWildcard { .. } | Expr::GetIndexedField { .. } => {
269-
RexType::Reference
270-
}
268+
Expr::Column(..) | Expr::GetIndexedField { .. } => RexType::Reference,
271269
Expr::ScalarVariable(..) | Expr::Literal(..) => RexType::Literal,
272270
Expr::BinaryExpr { .. }
273271
| Expr::Not(..)
@@ -286,7 +284,7 @@ impl PyExpr {
286284
| Expr::WindowFunction { .. }
287285
| Expr::AggregateUDF { .. }
288286
| Expr::InList { .. }
289-
| Expr::Wildcard
287+
| Expr::Wildcard { .. }
290288
| Expr::ScalarUDF { .. }
291289
| Expr::Exists { .. }
292290
| Expr::InSubquery { .. }
@@ -463,8 +461,7 @@ impl PyExpr {
463461
// Currently un-support/implemented Expr types for Rex Call operations
464462
Expr::GroupingSet(..)
465463
| Expr::OuterReferenceColumn(_, _)
466-
| Expr::Wildcard
467-
| Expr::QualifiedWildcard { .. }
464+
| Expr::Wildcard { .. }
468465
| Expr::ScalarSubquery(..)
469466
| Expr::Placeholder { .. }
470467
| Expr::Exists { .. } => Err(py_runtime_err(format!(
@@ -548,7 +545,7 @@ impl PyExpr {
548545
// appear in projections) so we just delegate to the contained expression instead
549546
Self::expr_to_field(expr, input_plan)
550547
}
551-
Expr::Wildcard => {
548+
Expr::Wildcard { .. } => {
552549
// Since * could be any of the valid column names just return the first one
553550
Ok(input_plan.schema().field(0).clone())
554551
}

0 commit comments

Comments
 (0)