Skip to content

Apache DataFusion SQL Query Engine

Release 17.0.0 (#5073)

Andy Grovebc9b78d95108
diff --git a/benchmarks/Cargo.toml b/benchmarks/Cargo.toml
index 8141701059..23c1d32ebd 100644
--- a/benchmarks/Cargo.toml
+++ b/benchmarks/Cargo.toml
@@ -18,7 +18,7 @@
[package]
name = "datafusion-benchmarks"
description = "DataFusion Benchmarks"
-version = "16.0.0"
+version = "17.0.0"
edition = "2021"
authors = ["Apache Arrow <[email protected]>"]
homepage = "https://github.com/apache/arrow-datafusion"
@@ -34,7 +34,7 @@ snmalloc = ["snmalloc-rs"]
[dependencies]
arrow = "31.0.0"
-datafusion = { path = "../datafusion/core", version = "16.0.0", features = ["scheduler"] }
+datafusion = { path = "../datafusion/core", version = "17.0.0", features = ["scheduler"] }
env_logger = "0.10"
futures = "0.3"
mimalloc = { version = "0.1", optional = true, default-features = false }
@@ -51,4 +51,4 @@ test-utils = { path = "../test-utils/", version = "0.1.0" }
tokio = { version = "^1.0", features = ["macros", "rt", "rt-multi-thread", "parking_lot"] }
[dev-dependencies]
-datafusion-proto = { path = "../datafusion/proto", version = "16.0.0" }
+datafusion-proto = { path = "../datafusion/proto", version = "17.0.0" }
diff --git a/datafusion-cli/Cargo.lock b/datafusion-cli/Cargo.lock
index 7e1c7d25f0..f706e2e287 100644
--- a/datafusion-cli/Cargo.lock
+++ b/datafusion-cli/Cargo.lock
@@ -692,7 +692,7 @@ dependencies = [
[[package]]
name = "datafusion"
-version = "16.0.0"
+version = "17.0.0"
dependencies = [
"ahash",
"arrow",
@@ -737,7 +737,7 @@ dependencies = [
[[package]]
name = "datafusion-cli"
-version = "16.0.0"
+version = "17.0.0"
dependencies = [
"arrow",
"async-trait",
@@ -755,7 +755,7 @@ dependencies = [
[[package]]
name = "datafusion-common"
-version = "16.0.0"
+version = "17.0.0"
dependencies = [
"arrow",
"chrono",
@@ -767,7 +767,7 @@ dependencies = [
[[package]]
name = "datafusion-expr"
-version = "16.0.0"
+version = "17.0.0"
dependencies = [
"ahash",
"arrow",
@@ -778,7 +778,7 @@ dependencies = [
[[package]]
name = "datafusion-optimizer"
-version = "16.0.0"
+version = "17.0.0"
dependencies = [
"arrow",
"async-trait",
@@ -793,7 +793,7 @@ dependencies = [
[[package]]
name = "datafusion-physical-expr"
-version = "16.0.0"
+version = "17.0.0"
dependencies = [
"ahash",
"arrow",
@@ -822,7 +822,7 @@ dependencies = [
[[package]]
name = "datafusion-row"
-version = "16.0.0"
+version = "17.0.0"
dependencies = [
"arrow",
"datafusion-common",
@@ -832,7 +832,7 @@ dependencies = [
[[package]]
name = "datafusion-sql"
-version = "16.0.0"
+version = "17.0.0"
dependencies = [
"arrow-schema",
"datafusion-common",
diff --git a/datafusion-cli/Cargo.toml b/datafusion-cli/Cargo.toml
index 9cefbff5c2..12fd7fea0d 100644
--- a/datafusion-cli/Cargo.toml
+++ b/datafusion-cli/Cargo.toml
@@ -18,7 +18,7 @@
[package]
name = "datafusion-cli"
description = "Command Line Client for DataFusion query engine."
-version = "16.0.0"
+version = "17.0.0"
authors = ["Apache Arrow <[email protected]>"]
edition = "2021"
keywords = [ "arrow", "datafusion", "query", "sql" ]
@@ -32,7 +32,7 @@ readme = "README.md"
arrow = "31.0.0"
async-trait = "0.1.41"
clap = { version = "3", features = ["derive", "cargo"] }
-datafusion = { path = "../datafusion/core", version = "16.0.0" }
+datafusion = { path = "../datafusion/core", version = "17.0.0" }
dirs = "4.0.0"
env_logger = "0.9"
mimalloc = { version = "0.1", default-features = false }
diff --git a/datafusion-examples/Cargo.toml b/datafusion-examples/Cargo.toml
index 46cd6b42ba..e6713bb9ae 100644
--- a/datafusion-examples/Cargo.toml
+++ b/datafusion-examples/Cargo.toml
@@ -18,7 +18,7 @@
[package]
name = "datafusion-examples"
description = "DataFusion usage examples"
-version = "16.0.0"
+version = "17.0.0"
homepage = "https://github.com/apache/arrow-datafusion"
repository = "https://github.com/apache/arrow-datafusion"
authors = ["Apache Arrow <[email protected]>"]
diff --git a/datafusion/CHANGELOG.md b/datafusion/CHANGELOG.md
index b793878974..3aedad375c 100644
--- a/datafusion/CHANGELOG.md
+++ b/datafusion/CHANGELOG.md
@@ -19,6 +19,153 @@
# Changelog
+## [17.0.0](https://github.com/apache/arrow-datafusion/tree/17.0.0) (2023-01-26)
+
+[Full Changelog](https://github.com/apache/arrow-datafusion/compare/16.1.0...17.0.0)
+
+**Breaking changes:**
+
+- Change ExecutionPlan::maintains\_input\_order to return vector \(to support multi children executors better\) [\#5035](https://github.com/apache/arrow-datafusion/pull/5035) ([mustafasrepo](https://github.com/mustafasrepo))
+- Allow overriding error type in DataFusion Result [\#5000](https://github.com/apache/arrow-datafusion/pull/5000) ([tustvold](https://github.com/tustvold))
+- Add dictionary\_expresions feature \(\#4386\) [\#4999](https://github.com/apache/arrow-datafusion/pull/4999) ([tustvold](https://github.com/tustvold))
+
+**Implemented enhancements:**
+
+- Retain the ordering of fields in the table schema when creating the projection for an update plan [\#5052](https://github.com/apache/arrow-datafusion/issues/5052)
+- \[sqllogictest\] Remove `integration-tests` directory [\#5011](https://github.com/apache/arrow-datafusion/issues/5011)
+- \[sqllogictest\] Consolidate normalization code for the postgres and non-postgres paths [\#5010](https://github.com/apache/arrow-datafusion/issues/5010)
+- \[sqllogictest\] Don't orchestrate the postgres containers with rust / docker [\#5009](https://github.com/apache/arrow-datafusion/issues/5009)
+- check external table exist before creating a table [\#4997](https://github.com/apache/arrow-datafusion/issues/4997)
+- Implement `std::error::Error` for DataFusionError [\#4991](https://github.com/apache/arrow-datafusion/issues/4991)
+- Return Vec\<bool\> instead of bool in ExecutionPlan::maintains\_input\_order [\#4980](https://github.com/apache/arrow-datafusion/issues/4980)
+- Add support for linear range search [\#4979](https://github.com/apache/arrow-datafusion/issues/4979)
+- Add support for bounded execution when window query involves UNBOUNDED PRECEDING [\#4978](https://github.com/apache/arrow-datafusion/issues/4978)
+- Infer prepared statement parameter types for insert queries with values clauses [\#4976](https://github.com/apache/arrow-datafusion/issues/4976)
+- The filter of outer table happens multiple time after optimizing in-subquery to join [\#4914](https://github.com/apache/arrow-datafusion/issues/4914)
+- Support Describe FILE in datafusion-cli [\#4913](https://github.com/apache/arrow-datafusion/issues/4913)
+- Release DataFusion 16 [\#4776](https://github.com/apache/arrow-datafusion/issues/4776)
+- Support writing lists in the arrow csv writer [\#4502](https://github.com/apache/arrow-datafusion/issues/4502)
+- Replace python based integration test with sqllogictest [\#4462](https://github.com/apache/arrow-datafusion/issues/4462)
+- Support CREATE TABLE table\_name\(...schema\_fields\) [\#4396](https://github.com/apache/arrow-datafusion/issues/4396)
+- Make Binary Dictionary Operations Optional [\#4386](https://github.com/apache/arrow-datafusion/issues/4386)
+- Improve / Cleanup DataFusion CI [\#3045](https://github.com/apache/arrow-datafusion/issues/3045)
+- More frequent DataFusion releases to crates.io \(discussion\) [\#2327](https://github.com/apache/arrow-datafusion/issues/2327)
+
+**Fixed bugs:**
+
+- Limit doesn't drop on first batch when limit size == fetch size. [\#5064](https://github.com/apache/arrow-datafusion/issues/5064)
+- Performance regressions since DataFusion 15.x [\#5060](https://github.com/apache/arrow-datafusion/issues/5060)
+- Homebrew release script has the amount of arguments being incorrect [\#5043](https://github.com/apache/arrow-datafusion/issues/5043)
+- CI Failing with Out of Disk [\#5040](https://github.com/apache/arrow-datafusion/issues/5040)
+- Doc links to LogicalPlan in the core package need updating. [\#5036](https://github.com/apache/arrow-datafusion/issues/5036)
+- explain analyze can not see csvexec execution time metrics [\#5014](https://github.com/apache/arrow-datafusion/issues/5014)
+- AVG\(nulls\) returns 0 rather than NULL [\#5007](https://github.com/apache/arrow-datafusion/issues/5007)
+- Invalid Placeholders return internal error \(rather than Plan error\) [\#5005](https://github.com/apache/arrow-datafusion/issues/5005)
+- select \* from csv error [\#4996](https://github.com/apache/arrow-datafusion/issues/4996)
+- Incorrect nested error wrapped to `ArrowError:External` variant for joins [\#4981](https://github.com/apache/arrow-datafusion/issues/4981)
+
+**Documentation updates:**
+
+- MINOR: Add Substrait to feature list in README [\#4955](https://github.com/apache/arrow-datafusion/pull/4955) ([andygrove](https://github.com/andygrove))
+- Minor: comma engineering in Readme [\#4954](https://github.com/apache/arrow-datafusion/pull/4954) ([alamb](https://github.com/alamb))
+- Update main DataFusion README [\#4903](https://github.com/apache/arrow-datafusion/pull/4903) ([alamb](https://github.com/alamb))
+- Docs: Add known user - Kamu [\#4899](https://github.com/apache/arrow-datafusion/pull/4899) ([sergiimk](https://github.com/sergiimk))
+
+**Closed issues:**
+
+- Support sub directories in sqllogictest runner [\#4709](https://github.com/apache/arrow-datafusion/issues/4709)
+- Bug displaying fractional seconds in `IntervalMonthDayNano` [\#4220](https://github.com/apache/arrow-datafusion/issues/4220)
+
+**Merged pull requests:**
+
+- Fix limit when size of batch to poll == skip/fetch value [\#5066](https://github.com/apache/arrow-datafusion/pull/5066) ([Dandandan](https://github.com/Dandandan))
+- Retain schema order in projection [\#5053](https://github.com/apache/arrow-datafusion/pull/5053) [[sql](https://github.com/apache/arrow-datafusion/labels/sql)] ([avantgardnerio](https://github.com/avantgardnerio))
+- Improve join type support in substrait [\#5051](https://github.com/apache/arrow-datafusion/pull/5051) ([andygrove](https://github.com/andygrove))
+- \[Substrait\] ReadRel. Get column names from TableScan source [\#5050](https://github.com/apache/arrow-datafusion/pull/5050) ([andygrove](https://github.com/andygrove))
+- Ensure insert projections are of correct type [\#5049](https://github.com/apache/arrow-datafusion/pull/5049) [[sql](https://github.com/apache/arrow-datafusion/labels/sql)] ([avantgardnerio](https://github.com/avantgardnerio))
+- Remove unnecessary pyo3 dependency from datafusion crate [\#5048](https://github.com/apache/arrow-datafusion/pull/5048) ([tustvold](https://github.com/tustvold))
+- Cleanup CI \(\#5040\) [\#5047](https://github.com/apache/arrow-datafusion/pull/5047) ([tustvold](https://github.com/tustvold))
+- Fix homebrew publish script [\#5044](https://github.com/apache/arrow-datafusion/pull/5044) ([iajoiner](https://github.com/iajoiner))
+- Update docs links to logical plans module. [\#5037](https://github.com/apache/arrow-datafusion/pull/5037) ([vincev](https://github.com/vincev))
+- \[sqllogictest\] Read subdirectories in `test_files` [\#5033](https://github.com/apache/arrow-datafusion/pull/5033) ([melgenek](https://github.com/melgenek))
+- minor: Fix docs for create\_default\_catalog\_and\_schema [\#5032](https://github.com/apache/arrow-datafusion/pull/5032) ([alamb](https://github.com/alamb))
+- Remove python based posgres comparsion `integration-test` [\#5031](https://github.com/apache/arrow-datafusion/pull/5031) ([alamb](https://github.com/alamb))
+- \[sqllogictest\] Create empty tables [\#5026](https://github.com/apache/arrow-datafusion/pull/5026) [[sql](https://github.com/apache/arrow-datafusion/labels/sql)] ([melgenek](https://github.com/melgenek))
+- Simplify the `PushDownLimit`. [\#5021](https://github.com/apache/arrow-datafusion/pull/5021) ([HaoYang670](https://github.com/HaoYang670))
+- \[BugFix\] fix explain csv/json/avro exec can not see metrics bug [\#5018](https://github.com/apache/arrow-datafusion/pull/5018) ([xiaoyong-z](https://github.com/xiaoyong-z))
+- Check placeholder \_\_timeTo and return Datafusion::Plan error [\#5017](https://github.com/apache/arrow-datafusion/pull/5017) [[sql](https://github.com/apache/arrow-datafusion/labels/sql)] ([matthias-Q](https://github.com/matthias-Q))
+- \[sqllogictets\] Remove postgres container orchestration [\#5015](https://github.com/apache/arrow-datafusion/pull/5015) ([alamb](https://github.com/alamb))
+- Sqllogictest: use the same normalization for all tests [\#5013](https://github.com/apache/arrow-datafusion/pull/5013) ([melgenek](https://github.com/melgenek))
+- Minor: Remove invalid comments [\#5012](https://github.com/apache/arrow-datafusion/pull/5012) [[sql](https://github.com/apache/arrow-datafusion/labels/sql)] ([xudong963](https://github.com/xudong963))
+- AVG\(null\) is NULL \(not zero\) [\#5008](https://github.com/apache/arrow-datafusion/pull/5008) ([alamb](https://github.com/alamb))
+- Minor: improve internal error message [\#5006](https://github.com/apache/arrow-datafusion/pull/5006) ([alamb](https://github.com/alamb))
+- Support for bounded execution when window frame involves UNBOUNDED PRECEDING [\#5003](https://github.com/apache/arrow-datafusion/pull/5003) ([mustafasrepo](https://github.com/mustafasrepo))
+- Bump sqllogictest to v0.11.1 [\#5002](https://github.com/apache/arrow-datafusion/pull/5002) ([xudong963](https://github.com/xudong963))
+- Minor: Document how to create `ListingTables` [\#5001](https://github.com/apache/arrow-datafusion/pull/5001) ([alamb](https://github.com/alamb))
+- \[Enhancement\] early check table exist before create [\#4998](https://github.com/apache/arrow-datafusion/pull/4998) ([xiaoyong-z](https://github.com/xiaoyong-z))
+- \[Feature\] support describe file [\#4995](https://github.com/apache/arrow-datafusion/pull/4995) [[sql](https://github.com/apache/arrow-datafusion/labels/sql)] ([xiaoyong-z](https://github.com/xiaoyong-z))
+- Implement `std::error::Error::source()` for `DataFusionError`, make `DataFusionError::find_root` more generic [\#4992](https://github.com/apache/arrow-datafusion/pull/4992) ([alamb](https://github.com/alamb))
+- Add support for linear range calculation in WINDOW functions [\#4989](https://github.com/apache/arrow-datafusion/pull/4989) ([mustafasrepo](https://github.com/mustafasrepo))
+- re-export substrait crate [\#4988](https://github.com/apache/arrow-datafusion/pull/4988) ([jdye64](https://github.com/jdye64))
+- minor: Update data type support documentation [\#4984](https://github.com/apache/arrow-datafusion/pull/4984) ([alamb](https://github.com/alamb))
+- fix\(4981\): incorrect error wrapping in `OnceFut` [\#4983](https://github.com/apache/arrow-datafusion/pull/4983) ([DDtKey](https://github.com/DDtKey))
+- Infer values for inserts [\#4977](https://github.com/apache/arrow-datafusion/pull/4977) [[sql](https://github.com/apache/arrow-datafusion/labels/sql)] ([avantgardnerio](https://github.com/avantgardnerio))
+- Simplify GroupByHash implementation \(to prepare for more work\) [\#4972](https://github.com/apache/arrow-datafusion/pull/4972) ([alamb](https://github.com/alamb))
+- Add DataFusionError::Substrait variant to DataFusionError enum [\#4971](https://github.com/apache/arrow-datafusion/pull/4971) ([jdye64](https://github.com/jdye64))
+- refactor: display input partitions for `RepartitionExec` [\#4969](https://github.com/apache/arrow-datafusion/pull/4969) ([crepererum](https://github.com/crepererum))
+- Upgrade to Substrait 0.4.0 [\#4966](https://github.com/apache/arrow-datafusion/pull/4966) ([mbrobbel](https://github.com/mbrobbel))
+- Expose `sql_to_statement` and `statement_to_plan` on `SessionState` [\#4958](https://github.com/apache/arrow-datafusion/pull/4958) ([avantgardnerio](https://github.com/avantgardnerio))
+- Minor: Make messages consistent for LogicalPlan::Dml [\#4953](https://github.com/apache/arrow-datafusion/pull/4953) [[sql](https://github.com/apache/arrow-datafusion/labels/sql)] ([alamb](https://github.com/alamb))
+- Do not resort inputs to `UnionExec` if they are already sorted [\#4946](https://github.com/apache/arrow-datafusion/pull/4946) ([alamb](https://github.com/alamb))
+- Minor: Reduce even more redundancy creating window\_agg in sort\_enforcement tests [\#4945](https://github.com/apache/arrow-datafusion/pull/4945) ([alamb](https://github.com/alamb))
+- Only add outer filter once when transforming exists/in subquery to join [\#4944](https://github.com/apache/arrow-datafusion/pull/4944) ([ygf11](https://github.com/ygf11))
+- fix: `FieldNotFound` error message without valid fields [\#4942](https://github.com/apache/arrow-datafusion/pull/4942) [[sql](https://github.com/apache/arrow-datafusion/labels/sql)] ([DDtKey](https://github.com/DDtKey))
+- Propagate planning error back to user [\#4940](https://github.com/apache/arrow-datafusion/pull/4940) ([fsdvh](https://github.com/fsdvh))
+- Make it able to specify a session id for SessionState [\#4933](https://github.com/apache/arrow-datafusion/pull/4933) ([yahoNanJing](https://github.com/yahoNanJing))
+- SUPPORT SEMI/ANTI JOIN SQL syntax in DataFusion [\#4932](https://github.com/apache/arrow-datafusion/pull/4932) [[sql](https://github.com/apache/arrow-datafusion/labels/sql)] ([mingmwang](https://github.com/mingmwang))
+- Support gs:// as GCS schema [\#4930](https://github.com/apache/arrow-datafusion/pull/4930) ([jychen7](https://github.com/jychen7))
+- Upgrade object\_store from 0.5.0 to 0.5.3 [\#4929](https://github.com/apache/arrow-datafusion/pull/4929) ([jychen7](https://github.com/jychen7))
+- Reduce redundancy in sort\_enforcement tests [\#4928](https://github.com/apache/arrow-datafusion/pull/4928) ([alamb](https://github.com/alamb))
+- Update to arrow 31 [\#4927](https://github.com/apache/arrow-datafusion/pull/4927) [[sql](https://github.com/apache/arrow-datafusion/labels/sql)] ([tustvold](https://github.com/tustvold))
+- Unify Row hash and hash implementation [\#4924](https://github.com/apache/arrow-datafusion/pull/4924) ([mustafasrepo](https://github.com/mustafasrepo))
+- Support join-filter pushdown for semi/anti join [\#4923](https://github.com/apache/arrow-datafusion/pull/4923) ([ygf11](https://github.com/ygf11))
+- Minor add ticket link to broken test [\#4919](https://github.com/apache/arrow-datafusion/pull/4919) ([alamb](https://github.com/alamb))
+- Improve documentation for ExprVisitor, port simple uses to new walking function [\#4916](https://github.com/apache/arrow-datafusion/pull/4916) ([alamb](https://github.com/alamb))
+- Add substrait label to PRs [\#4915](https://github.com/apache/arrow-datafusion/pull/4915) ([alamb](https://github.com/alamb))
+- Executing ProjectionExec with no column should not return an Err [\#4912](https://github.com/apache/arrow-datafusion/pull/4912) ([viirya](https://github.com/viirya))
+- Refactor: `Add LogicalPlan::observe_expressions` to walk expressions [\#4906](https://github.com/apache/arrow-datafusion/pull/4906) ([alamb](https://github.com/alamb))
+- Minor: Port information schema tests to sqllogictest [\#4905](https://github.com/apache/arrow-datafusion/pull/4905) ([alamb](https://github.com/alamb))
+- Add insert/update/delete to LogicalPlan and add SQL planner support [\#4902](https://github.com/apache/arrow-datafusion/pull/4902) [[sql](https://github.com/apache/arrow-datafusion/labels/sql)] ([avantgardnerio](https://github.com/avantgardnerio))
+- fix: Visit subqueries in `Expr::Alias` [\#4900](https://github.com/apache/arrow-datafusion/pull/4900) ([askoa](https://github.com/askoa))
+- \[Substrait\] Change API to return LogicalPlan instead of DataFrame [\#4896](https://github.com/apache/arrow-datafusion/pull/4896) ([andygrove](https://github.com/andygrove))
+- Upgrade to substrait 0.3 [\#4895](https://github.com/apache/arrow-datafusion/pull/4895) ([andygrove](https://github.com/andygrove))
+- Add datafusion-substrait crate to workspace [\#4893](https://github.com/apache/arrow-datafusion/pull/4893) ([andygrove](https://github.com/andygrove))
+- refactor and add simple function to deserialize and serialize proto b… [\#4892](https://github.com/apache/arrow-datafusion/pull/4892) ([jdye64](https://github.com/jdye64))
+- Update `optimize_children` to return `Result<Option<LogicalPlan>>` [\#4888](https://github.com/apache/arrow-datafusion/pull/4888) ([HaoYang670](https://github.com/HaoYang670))
+- Do not repartition inputs whose sort order is required [\#4885](https://github.com/apache/arrow-datafusion/pull/4885) ([alamb](https://github.com/alamb))
+- Minor: Add docstrings to UnionExec [\#4884](https://github.com/apache/arrow-datafusion/pull/4884) ([alamb](https://github.com/alamb))
+- Update datafusion-substrait crate to build against repo version of DataFusion [\#4879](https://github.com/apache/arrow-datafusion/pull/4879) ([andygrove](https://github.com/andygrove))
+- Fix column indices in EnforceDistribution optimizer in Partial AggregateMode [\#4878](https://github.com/apache/arrow-datafusion/pull/4878) ([jonmmease](https://github.com/jonmmease))
+- refactor: improve repartition buffering [\#4867](https://github.com/apache/arrow-datafusion/pull/4867) ([crepererum](https://github.com/crepererum))
+- Rewrite coerce\_plan\_expr\_for\_schema to fix union type coercion [\#4862](https://github.com/apache/arrow-datafusion/pull/4862) ([ygf11](https://github.com/ygf11))
+- \(\#4462\) Postgres compatibility tests using sqllogictest [\#4834](https://github.com/apache/arrow-datafusion/pull/4834) ([melgenek](https://github.com/melgenek))
+- Support non-tuple expression for in-subquery to join [\#4826](https://github.com/apache/arrow-datafusion/pull/4826) ([ygf11](https://github.com/ygf11))
+- Update to arrow `30.0.1` [\#4818](https://github.com/apache/arrow-datafusion/pull/4818) [[sql](https://github.com/apache/arrow-datafusion/labels/sql)] ([tustvold](https://github.com/tustvold))
+- Refine the statistics estimation for the limit and aggregate operator [\#4716](https://github.com/apache/arrow-datafusion/pull/4716) ([yahoNanJing](https://github.com/yahoNanJing))
+- Infer prepared statement parameter types [\#4701](https://github.com/apache/arrow-datafusion/pull/4701) [[sql](https://github.com/apache/arrow-datafusion/labels/sql)] ([avantgardnerio](https://github.com/avantgardnerio))
+- Add datafusion-substrait crate [\#4543](https://github.com/apache/arrow-datafusion/pull/4543) ([andygrove](https://github.com/andygrove))
+- Refactor loser tree code in SortPreservingMerge per PR comments [\#4407](https://github.com/apache/arrow-datafusion/pull/4407) ([alamb](https://github.com/alamb))
+
+
+## [16.1.0](https://github.com/apache/arrow-datafusion/tree/16.1.0) (2023-01-19)
+
+[Full Changelog](https://github.com/apache/arrow-datafusion/compare/16.1.0-rc1...16.0.0)
+
+**Merged pull requests:**
+
+- Fix column indices in EnforceDistribution optimizer in Partial AggregateMode \(\#4878\) [\#4959](https://github.com/apache/arrow-datafusion/pull/4959)
+- Make it able to specify a session id for SessionState \(\#4933\) [\#4951](https://github.com/apache/arrow-datafusion/pull/4951)
+
## [16.0.0](https://github.com/apache/arrow-datafusion/tree/16.0.0) (2023-01-12)
[Full Changelog](https://github.com/apache/arrow-datafusion/compare/16.0.0-rc1...16.0.0)
diff --git a/datafusion/common/Cargo.toml b/datafusion/common/Cargo.toml
index 665278bcec..b2bd45310e 100644
--- a/datafusion/common/Cargo.toml
+++ b/datafusion/common/Cargo.toml
@@ -18,7 +18,7 @@
[package]
name = "datafusion-common"
description = "Common functionality for DataFusion query engine"
-version = "16.0.0"
+version = "17.0.0"
homepage = "https://github.com/apache/arrow-datafusion"
repository = "https://github.com/apache/arrow-datafusion"
readme = "README.md"
diff --git a/datafusion/core/Cargo.toml b/datafusion/core/Cargo.toml
index afd3068ffd..07999e10a4 100644
--- a/datafusion/core/Cargo.toml
+++ b/datafusion/core/Cargo.toml
@@ -18,7 +18,7 @@
[package]
name = "datafusion"
description = "DataFusion is an in-memory query engine that uses Apache Arrow as the memory model"
-version = "16.0.0"
+version = "17.0.0"
homepage = "https://github.com/apache/arrow-datafusion"
repository = "https://github.com/apache/arrow-datafusion"
readme = "../../README.md"
@@ -67,13 +67,13 @@ bytes = "1.1"
bzip2 = { version = "0.4.3", optional = true }
chrono = { version = "0.4.23", default-features = false }
dashmap = "5.4.0"
-datafusion-common = { path = "../common", version = "16.0.0", features = ["parquet", "object_store"] }
-datafusion-expr = { path = "../expr", version = "16.0.0" }
-datafusion-jit = { path = "../jit", version = "16.0.0", optional = true }
-datafusion-optimizer = { path = "../optimizer", version = "16.0.0" }
-datafusion-physical-expr = { path = "../physical-expr", version = "16.0.0" }
-datafusion-row = { path = "../row", version = "16.0.0" }
-datafusion-sql = { path = "../sql", version = "16.0.0" }
+datafusion-common = { path = "../common", version = "17.0.0", features = ["parquet", "object_store"] }
+datafusion-expr = { path = "../expr", version = "17.0.0" }
+datafusion-jit = { path = "../jit", version = "17.0.0", optional = true }
+datafusion-optimizer = { path = "../optimizer", version = "17.0.0" }
+datafusion-physical-expr = { path = "../physical-expr", version = "17.0.0" }
+datafusion-row = { path = "../row", version = "17.0.0" }
+datafusion-sql = { path = "../sql", version = "17.0.0" }
flate2 = { version = "1.0.24", optional = true }
futures = "0.3"
glob = "0.3.0"
diff --git a/datafusion/expr/Cargo.toml b/datafusion/expr/Cargo.toml
index a38b891969..b669653d58 100644
--- a/datafusion/expr/Cargo.toml
+++ b/datafusion/expr/Cargo.toml
@@ -18,7 +18,7 @@
[package]
name = "datafusion-expr"
description = "Logical plan and expression representation for DataFusion query engine"
-version = "16.0.0"
+version = "17.0.0"
homepage = "https://github.com/apache/arrow-datafusion"
repository = "https://github.com/apache/arrow-datafusion"
readme = "README.md"
@@ -37,6 +37,6 @@ path = "src/lib.rs"
[dependencies]
ahash = { version = "0.8", default-features = false, features = ["runtime-rng"] }
arrow = { version = "31.0.0", default-features = false }
-datafusion-common = { path = "../common", version = "16.0.0" }
+datafusion-common = { path = "../common", version = "17.0.0" }
log = "^0.4"
sqlparser = "0.30"
diff --git a/datafusion/jit/Cargo.toml b/datafusion/jit/Cargo.toml
index 89782ad015..bb1d06e48d 100644
--- a/datafusion/jit/Cargo.toml
+++ b/datafusion/jit/Cargo.toml
@@ -18,7 +18,7 @@
[package]
name = "datafusion-jit"
description = "Just In Time (JIT) compilation support for DataFusion query engine"
-version = "16.0.0"
+version = "17.0.0"
homepage = "https://github.com/apache/arrow-datafusion"
repository = "https://github.com/apache/arrow-datafusion"
readme = "README.md"
@@ -41,7 +41,7 @@ cranelift = "0.89.0"
cranelift-jit = "0.89.0"
cranelift-module = "0.89.0"
cranelift-native = "0.89.0"
-datafusion-common = { path = "../common", version = "16.0.0", features = ["jit"] }
-datafusion-expr = { path = "../expr", version = "16.0.0" }
+datafusion-common = { path = "../common", version = "17.0.0", features = ["jit"] }
+datafusion-expr = { path = "../expr", version = "17.0.0" }
parking_lot = "0.12"
diff --git a/datafusion/optimizer/Cargo.toml b/datafusion/optimizer/Cargo.toml
index 3a5ce882a6..197fed6eac 100644
--- a/datafusion/optimizer/Cargo.toml
+++ b/datafusion/optimizer/Cargo.toml
@@ -18,7 +18,7 @@
[package]
name = "datafusion-optimizer"
description = "DataFusion Query Optimizer"
-version = "16.0.0"
+version = "17.0.0"
homepage = "https://github.com/apache/arrow-datafusion"
repository = "https://github.com/apache/arrow-datafusion"
readme = "README.md"
@@ -40,14 +40,14 @@ unicode_expressions = []
arrow = { version = "31.0.0", features = ["prettyprint"] }
async-trait = "0.1.41"
chrono = { version = "0.4.23", default-features = false }
-datafusion-common = { path = "../common", version = "16.0.0" }
-datafusion-expr = { path = "../expr", version = "16.0.0" }
-datafusion-physical-expr = { path = "../physical-expr", version = "16.0.0" }
+datafusion-common = { path = "../common", version = "17.0.0" }
+datafusion-expr = { path = "../expr", version = "17.0.0" }
+datafusion-physical-expr = { path = "../physical-expr", version = "17.0.0" }
hashbrown = { version = "0.13", features = ["raw"] }
log = "^0.4"
regex-syntax = "0.6.28"
[dev-dependencies]
ctor = "0.1.22"
-datafusion-sql = { path = "../sql", version = "16.0.0" }
+datafusion-sql = { path = "../sql", version = "17.0.0" }
env_logger = "0.10.0"
diff --git a/datafusion/physical-expr/Cargo.toml b/datafusion/physical-expr/Cargo.toml
index 6ab1bb7fa9..3274c934a7 100644
--- a/datafusion/physical-expr/Cargo.toml
+++ b/datafusion/physical-expr/Cargo.toml
@@ -18,7 +18,7 @@
[package]
name = "datafusion-physical-expr"
description = "Physical expression implementation for DataFusion query engine"
-version = "16.0.0"
+version = "17.0.0"
homepage = "https://github.com/apache/arrow-datafusion"
repository = "https://github.com/apache/arrow-datafusion"
readme = "README.md"
@@ -49,9 +49,9 @@ arrow-schema = "31.0.0"
blake2 = { version = "^0.10.2", optional = true }
blake3 = { version = "1.0", optional = true }
chrono = { version = "0.4.23", default-features = false }
-datafusion-common = { path = "../common", version = "16.0.0" }
-datafusion-expr = { path = "../expr", version = "16.0.0" }
-datafusion-row = { path = "../row", version = "16.0.0" }
+datafusion-common = { path = "../common", version = "17.0.0" }
+datafusion-expr = { path = "../expr", version = "17.0.0" }
+datafusion-row = { path = "../row", version = "17.0.0" }
half = { version = "2.1", default-features = false }
hashbrown = { version = "0.13", features = ["raw"] }
indexmap = "1.9.2"
diff --git a/datafusion/proto/Cargo.toml b/datafusion/proto/Cargo.toml
index 195e28766a..951e92e874 100644
--- a/datafusion/proto/Cargo.toml
+++ b/datafusion/proto/Cargo.toml
@@ -18,7 +18,7 @@
[package]
name = "datafusion-proto"
description = "Protobuf serialization of DataFusion logical plan expressions"
-version = "16.0.0"
+version = "17.0.0"
homepage = "https://github.com/apache/arrow-datafusion"
repository = "https://github.com/apache/arrow-datafusion"
readme = "README.md"
@@ -42,9 +42,9 @@ json = ["pbjson", "serde", "serde_json"]
[dependencies]
arrow = "31.0.0"
chrono = { version = "0.4", default-features = false }
-datafusion = { path = "../core", version = "16.0.0" }
-datafusion-common = { path = "../common", version = "16.0.0" }
-datafusion-expr = { path = "../expr", version = "16.0.0" }
+datafusion = { path = "../core", version = "17.0.0" }
+datafusion-common = { path = "../common", version = "17.0.0" }
+datafusion-expr = { path = "../expr", version = "17.0.0" }
object_store = { version = "0.5.0" }
parking_lot = { version = "0.12" }
pbjson = { version = "0.5", optional = true }
diff --git a/datafusion/row/Cargo.toml b/datafusion/row/Cargo.toml
index 20e9679aba..0ecbf0ad37 100644
--- a/datafusion/row/Cargo.toml
+++ b/datafusion/row/Cargo.toml
@@ -18,7 +18,7 @@
[package]
name = "datafusion-row"
description = "Row backed by raw bytes for DataFusion query engine"
-version = "16.0.0"
+version = "17.0.0"
homepage = "https://github.com/apache/arrow-datafusion"
repository = "https://github.com/apache/arrow-datafusion"
readme = "README.md"
@@ -38,7 +38,7 @@ jit = ["datafusion-jit"]
[dependencies]
arrow = "31.0.0"
-datafusion-common = { path = "../common", version = "16.0.0" }
-datafusion-jit = { path = "../jit", version = "16.0.0", optional = true }
+datafusion-common = { path = "../common", version = "17.0.0" }
+datafusion-jit = { path = "../jit", version = "17.0.0", optional = true }
paste = "^1.0"
rand = "0.8"
diff --git a/datafusion/sql/Cargo.toml b/datafusion/sql/Cargo.toml
index bec70291a0..182292fb41 100644
--- a/datafusion/sql/Cargo.toml
+++ b/datafusion/sql/Cargo.toml
@@ -18,7 +18,7 @@
[package]
name = "datafusion-sql"
description = "DataFusion SQL Query Planner"
-version = "16.0.0"
+version = "17.0.0"
homepage = "https://github.com/apache/arrow-datafusion"
repository = "https://github.com/apache/arrow-datafusion"
readme = "README.md"
@@ -38,8 +38,8 @@ unicode_expressions = []
[dependencies]
arrow-schema = "31.0.0"
-datafusion-common = { path = "../common", version = "16.0.0" }
-datafusion-expr = { path = "../expr", version = "16.0.0" }
+datafusion-common = { path = "../common", version = "17.0.0" }
+datafusion-expr = { path = "../expr", version = "17.0.0" }
log = "^0.4"
sqlparser = "0.30"
diff --git a/datafusion/substrait/Cargo.toml b/datafusion/substrait/Cargo.toml
index 1c2e98a43c..5e9beef436 100644
--- a/datafusion/substrait/Cargo.toml
+++ b/datafusion/substrait/Cargo.toml
@@ -17,13 +17,13 @@
[package]
name = "datafusion-substrait"
-version = "16.0.0"
+version = "17.0.0"
edition = "2021"
rust-version = "1.62"
[dependencies]
async-recursion = "1.0"
-datafusion = { version = "16.0.0", path = "../core" }
+datafusion = { version = "17.0.0", path = "../core" }
prost = "0.11"
prost-types = "0.11"
substrait = "0.4"
diff --git a/dev/release/crate-deps.dot b/dev/release/crate-deps.dot
index e01525ae8b..a5a1db1a79 100644
--- a/dev/release/crate-deps.dot
+++ b/dev/release/crate-deps.dot
@@ -46,5 +46,7 @@ digraph G {
datafusion_proto -> datafusion
+ datafusion_substrait -> datafusion
+
datafusion_cli -> datafusion
}
diff --git a/dev/release/crate-deps.svg b/dev/release/crate-deps.svg
index 045aad42ed..c3fa7217dc 100644
--- a/dev/release/crate-deps.svg
+++ b/dev/release/crate-deps.svg
@@ -168,26 +168,38 @@
<!-- datafusion_proto -->
<g id="node9" class="node">
<title>datafusion_proto</title>
-<ellipse fill="none" stroke="black" cx="482.34" cy="-378" rx="89.08" ry="18"/>
-<text text-anchor="middle" x="482.34" y="-374.3" font-family="Times,serif" font-size="14.00">datafusion_proto</text>
+<ellipse fill="none" stroke="black" cx="360.34" cy="-378" rx="89.08" ry="18"/>
+<text text-anchor="middle" x="360.34" y="-374.3" font-family="Times,serif" font-size="14.00">datafusion_proto</text>
</g>
<!-- datafusion_proto&#45;&gt;datafusion -->
<g id="edge19" class="edge">
<title>datafusion_proto&#45;&gt;datafusion</title>
-<path fill="none" stroke="black" d="M503.91,-360.41C515.98,-351.12 531.2,-339.42 544.3,-329.34"/>
-<polygon fill="black" stroke="black" points="546.77,-331.86 552.56,-322.99 542.5,-326.31 546.77,-331.86"/>
+<path fill="none" stroke="black" d="M404.99,-362.33C440.01,-350.82 488.67,-334.83 524.67,-322.99"/>
+<polygon fill="black" stroke="black" points="526.06,-326.22 534.47,-319.77 523.88,-319.57 526.06,-326.22"/>
</g>
-<!-- datafusion_cli -->
+<!-- datafusion_substrait -->
<g id="node10" class="node">
+<title>datafusion_substrait</title>
+<ellipse fill="none" stroke="black" cx="573.34" cy="-378" rx="105.88" ry="18"/>
+<text text-anchor="middle" x="573.34" y="-374.3" font-family="Times,serif" font-size="14.00">datafusion_substrait</text>
+</g>
+<!-- datafusion_substrait&#45;&gt;datafusion -->
+<g id="edge20" class="edge">
+<title>datafusion_substrait&#45;&gt;datafusion</title>
+<path fill="none" stroke="black" d="M573.34,-359.7C573.34,-351.98 573.34,-342.71 573.34,-334.11"/>
+<polygon fill="black" stroke="black" points="576.84,-334.1 573.34,-324.1 569.84,-334.1 576.84,-334.1"/>
+</g>
+<!-- datafusion_cli -->
+<g id="node11" class="node">
<title>datafusion_cli</title>
-<ellipse fill="none" stroke="black" cx="664.34" cy="-378" rx="74.99" ry="18"/>
-<text text-anchor="middle" x="664.34" y="-374.3" font-family="Times,serif" font-size="14.00">datafusion_cli</text>
+<ellipse fill="none" stroke="black" cx="772.34" cy="-378" rx="74.99" ry="18"/>
+<text text-anchor="middle" x="772.34" y="-374.3" font-family="Times,serif" font-size="14.00">datafusion_cli</text>
</g>
<!-- datafusion_cli&#45;&gt;datafusion -->
-<g id="edge20" class="edge">
+<g id="edge21" class="edge">
<title>datafusion_cli&#45;&gt;datafusion</title>
-<path fill="none" stroke="black" d="M642.78,-360.41C630.71,-351.12 615.49,-339.42 602.38,-329.34"/>
-<polygon fill="black" stroke="black" points="604.19,-326.31 594.13,-322.99 599.92,-331.86 604.19,-326.31"/>
+<path fill="none" stroke="black" d="M732.07,-362.83C699.82,-351.49 654.52,-335.55 620.56,-323.61"/>
+<polygon fill="black" stroke="black" points="621.46,-320.21 610.86,-320.2 619.13,-326.82 621.46,-320.21"/>
</g>
</g>
</svg>
diff --git a/dev/update_datafusion_versions.py b/dev/update_datafusion_versions.py
index 0615bce762..28ac9c71c7 100755
--- a/dev/update_datafusion_versions.py
+++ b/dev/update_datafusion_versions.py
@@ -37,6 +37,7 @@ crates = {
'datafusion-physical-expr': 'datafusion/physical-expr/Cargo.toml',
'datafusion-proto': 'datafusion/proto/Cargo.toml',
'datafusion-row': 'datafusion/row/Cargo.toml',
+ 'datafusion-substrait': 'datafusion/substrait/Cargo.toml',
'datafusion-sql': 'datafusion/sql/Cargo.toml',
'datafusion-benchmarks': 'benchmarks/Cargo.toml',
'datafusion-examples': 'datafusion-examples/Cargo.toml',