Skip to content

Commit dd4ed97

Browse files
authored
Prepare 36.0.0 Release (#599)
1 parent 27a9264 commit dd4ed97

7 files changed

Lines changed: 258 additions & 106 deletions

File tree

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,23 @@
1919

2020
# DataFusion Python Changelog
2121

22+
## [36.0.0](https://github.com/apache/arrow-datafusion-python/tree/36.0.0) (2024-03-02)
23+
24+
**Implemented enhancements:**
25+
26+
- feat: Add `flatten` array function [#562](https://github.com/apache/arrow-datafusion-python/pull/562) (mobley-trent)
27+
28+
**Documentation updates:**
29+
30+
- docs: Add ASF attribution [#580](https://github.com/apache/arrow-datafusion-python/pull/580) (simicd)
31+
32+
**Merged pull requests:**
33+
34+
- Allow PyDataFrame to be used from other projects [#582](https://github.com/apache/arrow-datafusion-python/pull/582) (andygrove)
35+
- docs: Add ASF attribution [#580](https://github.com/apache/arrow-datafusion-python/pull/580) (simicd)
36+
- Add array functions [#560](https://github.com/apache/arrow-datafusion-python/pull/560) (ongchi)
37+
- feat: Add `flatten` array function [#562](https://github.com/apache/arrow-datafusion-python/pull/562) (mobley-trent)
38+
2239
## [35.0.0](https://github.com/apache/arrow-datafusion-python/tree/35.0.0) (2024-01-20)
2340

2441
**Merged pull requests:**

Cargo.lock

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

Cargo.toml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
[package]
1919
name = "datafusion-python"
20-
version = "35.0.0"
20+
version = "36.0.0"
2121
homepage = "https://github.com/apache/arrow-datafusion-python"
2222
repository = "https://github.com/apache/arrow-datafusion-python"
2323
authors = ["Apache Arrow <dev@arrow.apache.org>"]
@@ -37,12 +37,13 @@ substrait = ["dep:datafusion-substrait"]
3737
tokio = { version = "1.35", features = ["macros", "rt", "rt-multi-thread", "sync"] }
3838
rand = "0.8"
3939
pyo3 = { version = "0.20", features = ["extension-module", "abi3", "abi3-py38"] }
40-
datafusion = { version = "35.0.0", features = ["pyarrow", "avro"] }
41-
datafusion-common = { version = "35.0.0", features = ["pyarrow"] }
42-
datafusion-expr = "35.0.0"
43-
datafusion-optimizer = "35.0.0"
44-
datafusion-sql = "35.0.0"
45-
datafusion-substrait = { version = "35.0.0", optional = true }
40+
datafusion = { version = "36.0.0", features = ["pyarrow", "avro"] }
41+
datafusion-common = { version = "36.0.0", features = ["pyarrow"] }
42+
datafusion-expr = "36.0.0"
43+
datafusion-functions-array = "36.0.0"
44+
datafusion-optimizer = "36.0.0"
45+
datafusion-sql = "36.0.0"
46+
datafusion-substrait = { version = "36.0.0", optional = true }
4647
prost = "0.12"
4748
prost-types = "0.12"
4849
uuid = { version = "1.3", features = ["v4"] }

src/common/data_type.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,15 +290,21 @@ impl DataTypeMap {
290290
Ok(DataType::Interval(IntervalUnit::MonthDayNano))
291291
}
292292
ScalarValue::List(arr) => Ok(arr.data_type().to_owned()),
293-
ScalarValue::Struct(_, fields) => Ok(DataType::Struct(fields.to_owned())),
293+
ScalarValue::Struct(_fields) => Err(py_datafusion_err(
294+
DataFusionError::NotImplemented("ScalarValue::Struct".to_string()),
295+
)),
294296
ScalarValue::FixedSizeBinary(size, _) => Ok(DataType::FixedSizeBinary(*size)),
295297
ScalarValue::FixedSizeList(_array_ref) => {
296298
// The FieldRef was removed from ScalarValue::FixedSizeList in
297299
// https://github.com/apache/arrow-datafusion/pull/8221, so we can no
298300
// longer convert back to a DataType here
299-
todo!()
301+
Err(py_datafusion_err(DataFusionError::NotImplemented(
302+
"ScalarValue::FixedSizeList".to_string(),
303+
)))
300304
}
301-
ScalarValue::LargeList(_) => todo!(),
305+
ScalarValue::LargeList(_) => Err(py_datafusion_err(DataFusionError::NotImplemented(
306+
"ScalarValue::LargeList".to_string(),
307+
))),
302308
ScalarValue::DurationSecond(_) => Ok(DataType::Duration(TimeUnit::Second)),
303309
ScalarValue::DurationMillisecond(_) => Ok(DataType::Duration(TimeUnit::Millisecond)),
304310
ScalarValue::DurationMicrosecond(_) => Ok(DataType::Duration(TimeUnit::Microsecond)),

0 commit comments

Comments
 (0)