Skip to content

Commit

Permalink
Backport: Update version and Changelog for 21.1.0 (#5766)
Browse files Browse the repository at this point in the history
* Update Changelog for 21.1.0

* Update version to `22.1.0`

* Update workspace package and version update script
  • Loading branch information
alamb authored Mar 29, 2023
1 parent cd38ce3 commit 967af1b
Show file tree
Hide file tree
Showing 15 changed files with 63 additions and 35 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ members = [
]

[workspace.package]
version = "21.0.0"
version = "21.1.0"
edition = "2021"
readme = "README.md"
authors = ["Apache Arrow <[email protected]>"]
Expand Down
6 changes: 3 additions & 3 deletions benchmarks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
[package]
name = "datafusion-benchmarks"
description = "DataFusion Benchmarks"
version = "21.0.0"
version = "21.1.0"
edition = "2021"
authors = ["Apache Arrow <[email protected]>"]
homepage = "https://github.com/apache/arrow-datafusion"
Expand All @@ -34,7 +34,7 @@ snmalloc = ["snmalloc-rs"]

[dependencies]
arrow = { workspace = true }
datafusion = { path = "../datafusion/core", version = "21.0.0", features = ["scheduler"] }
datafusion = { path = "../datafusion/core", version = "21.1.0", features = ["scheduler"] }
env_logger = "0.10"
futures = "0.3"
mimalloc = { version = "0.1", optional = true, default-features = false }
Expand All @@ -48,4 +48,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 = "21.0.0" }
datafusion-proto = { path = "../datafusion/proto", version = "21.1.0" }
4 changes: 2 additions & 2 deletions datafusion-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
[package]
name = "datafusion-cli"
description = "Command Line Client for DataFusion query engine."
version = "21.0.0"
version = "21.1.0"
authors = ["Apache Arrow <[email protected]>"]
edition = "2021"
keywords = ["arrow", "datafusion", "query", "sql"]
Expand All @@ -32,7 +32,7 @@ readme = "README.md"
arrow = "34.0.0"
async-trait = "0.1.41"
clap = { version = "3", features = ["derive", "cargo"] }
datafusion = { path = "../datafusion/core", version = "21.0.0" }
datafusion = { path = "../datafusion/core", version = "21.1.0" }
dirs = "4.0.0"
env_logger = "0.9"
mimalloc = { version = "0.1", default-features = false }
Expand Down
10 changes: 10 additions & 0 deletions datafusion/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@

# Changelog

## [21.1.0](https://github.com/apache/arrow-datafusion/tree/21.1.0) (2023-03-24)

[Full Changelog](https://github.com/apache/arrow-datafusion/compare/21.0.0...21.1.0)


**Fixed bugs:**

- fix: Use consistent arrow version (do not use both `arrow 34.0.0` and `arrow-array 35.0.0`) [#5765](https://github.com/apache/arrow-datafusion/pull/5765)


## [21.0.0](https://github.com/apache/arrow-datafusion/tree/21.0.0) (2023-03-24)

[Full Changelog](https://github.com/apache/arrow-datafusion/compare/20.0.0...21.0.0)
Expand Down
16 changes: 8 additions & 8 deletions datafusion/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ bytes = "1.4"
bzip2 = { version = "0.4.3", optional = true }
chrono = { version = "0.4.23", default-features = false }
dashmap = "5.4.0"
datafusion-common = { path = "../common", version = "21.0.0", features = ["parquet", "object_store"] }
datafusion-execution = { path = "../execution", version = "21.0.0" }
datafusion-expr = { path = "../expr", version = "21.0.0" }
datafusion-jit = { path = "../jit", version = "21.0.0", optional = true }
datafusion-optimizer = { path = "../optimizer", version = "21.0.0", default-features = false }
datafusion-physical-expr = { path = "../physical-expr", version = "21.0.0", default-features = false }
datafusion-row = { path = "../row", version = "21.0.0" }
datafusion-sql = { path = "../sql", version = "21.0.0" }
datafusion-common = { path = "../common", version = "21.1.0", features = ["parquet", "object_store"] }
datafusion-execution = { path = "../execution", version = "21.1.0" }
datafusion-expr = { path = "../expr", version = "21.1.0" }
datafusion-jit = { path = "../jit", version = "21.1.0", optional = true }
datafusion-optimizer = { path = "../optimizer", version = "21.1.0", default-features = false }
datafusion-physical-expr = { path = "../physical-expr", version = "21.1.0", default-features = false }
datafusion-row = { path = "../row", version = "21.1.0" }
datafusion-sql = { path = "../sql", version = "21.1.0" }
flate2 = { version = "1.0.24", optional = true }
futures = "0.3"
glob = "0.3.0"
Expand Down
4 changes: 2 additions & 2 deletions datafusion/execution/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ path = "src/lib.rs"

[dependencies]
dashmap = "5.4.0"
datafusion-common = { path = "../common", version = "21.0.0" }
datafusion-expr = { path = "../expr", version = "21.0.0" }
datafusion-common = { path = "../common", version = "21.1.0" }
datafusion-expr = { path = "../expr", version = "21.1.0" }
hashbrown = { version = "0.13", features = ["raw"] }
log = "^0.4"
object_store = "0.5.4"
Expand Down
2 changes: 1 addition & 1 deletion datafusion/expr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ path = "src/lib.rs"
[dependencies]
ahash = { version = "0.8", default-features = false, features = ["runtime-rng"] }
arrow = { workspace = true }
datafusion-common = { path = "../common", version = "21.0.0" }
datafusion-common = { path = "../common", version = "21.1.0" }
sqlparser = "0.32"

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions datafusion/jit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "21.0.0", features = ["jit"] }
datafusion-expr = { path = "../expr", version = "21.0.0" }
datafusion-common = { path = "../common", version = "21.1.0", features = ["jit"] }
datafusion-expr = { path = "../expr", version = "21.1.0" }

parking_lot = "0.12"
8 changes: 4 additions & 4 deletions datafusion/optimizer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ unicode_expressions = ["datafusion-physical-expr/unicode_expressions"]
arrow = { workspace = true }
async-trait = "0.1.41"
chrono = { version = "0.4.23", default-features = false }
datafusion-common = { path = "../common", version = "21.0.0" }
datafusion-expr = { path = "../expr", version = "21.0.0" }
datafusion-physical-expr = { path = "../physical-expr", version = "21.0.0", default-features = false }
datafusion-common = { path = "../common", version = "21.1.0" }
datafusion-expr = { path = "../expr", version = "21.1.0" }
datafusion-physical-expr = { path = "../physical-expr", version = "21.1.0", default-features = false }
hashbrown = { version = "0.13", features = ["raw"] }
itertools = "0.10"
log = "^0.4"
regex-syntax = "0.6.28"

[dev-dependencies]
ctor = "0.1.22"
datafusion-sql = { path = "../sql", version = "21.0.0" }
datafusion-sql = { path = "../sql", version = "21.1.0" }
env_logger = "0.10.0"
6 changes: 3 additions & 3 deletions datafusion/physical-expr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ arrow-schema = { workspace = true }
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 = "21.0.0" }
datafusion-expr = { path = "../expr", version = "21.0.0" }
datafusion-row = { path = "../row", version = "21.0.0" }
datafusion-common = { path = "../common", version = "21.1.0" }
datafusion-expr = { path = "../expr", version = "21.1.0" }
datafusion-row = { path = "../row", version = "21.1.0" }
half = { version = "2.1", default-features = false }
hashbrown = { version = "0.13", features = ["raw"] }
indexmap = "1.9.2"
Expand Down
6 changes: 3 additions & 3 deletions datafusion/proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ json = ["pbjson", "serde", "serde_json"]
[dependencies]
arrow = { workspace = true }
chrono = { version = "0.4", default-features = false }
datafusion = { path = "../core", version = "21.0.0" }
datafusion-common = { path = "../common", version = "21.0.0" }
datafusion-expr = { path = "../expr", version = "21.0.0" }
datafusion = { path = "../core", version = "21.1.0" }
datafusion-common = { path = "../common", version = "21.1.0" }
datafusion-expr = { path = "../expr", version = "21.1.0" }
object_store = { version = "0.5.4" }
pbjson = { version = "0.5", optional = true }
prost = "0.11.0"
Expand Down
4 changes: 2 additions & 2 deletions datafusion/row/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jit = ["datafusion-jit"]

[dependencies]
arrow = { workspace = true }
datafusion-common = { path = "../common", version = "21.0.0" }
datafusion-jit = { path = "../jit", version = "21.0.0", optional = true }
datafusion-common = { path = "../common", version = "21.1.0" }
datafusion-jit = { path = "../jit", version = "21.1.0", optional = true }
paste = "^1.0"
rand = "0.8"
4 changes: 2 additions & 2 deletions datafusion/sql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ unicode_expressions = []

[dependencies]
arrow-schema = { workspace = true }
datafusion-common = { path = "../common", version = "21.0.0" }
datafusion-expr = { path = "../expr", version = "21.0.0" }
datafusion-common = { path = "../common", version = "21.1.0" }
datafusion-expr = { path = "../expr", version = "21.1.0" }
log = "^0.4"
sqlparser = "0.32"

Expand Down
2 changes: 1 addition & 1 deletion datafusion/substrait/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ rust-version = { workspace = true }
[dependencies]
async-recursion = "1.0"
chrono = "0.4.23"
datafusion = { version = "21.0.0", path = "../core" }
datafusion = { version = "21.1.0", path = "../core" }
itertools = "0.10.5"
object_store = "0.5.4"
prost = "0.11"
Expand Down
20 changes: 19 additions & 1 deletion dev/update_datafusion_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,22 @@
'datafusion-examples': 'datafusion-examples/Cargo.toml',
}

def update_workspace_version(new_version: str):
cargo_toml = 'Cargo.toml'
print(f'updating {cargo_toml}')
with open(cargo_toml) as f:
data = f.read()

doc = tomlkit.parse(data)
pkg = doc.get('workspace').get('package')

print('workspace pacakge', pkg)
pkg['version'] = new_version

with open(cargo_toml, 'w') as f:
f.write(tomlkit.dumps(doc))


def update_datafusion_version(cargo_toml: str, new_version: str):
print(f'updating {cargo_toml}')
with open(cargo_toml) as f:
Expand All @@ -57,7 +73,6 @@ def update_datafusion_version(cargo_toml: str, new_version: str):
with open(cargo_toml, 'w') as f:
f.write(tomlkit.dumps(doc))


def update_downstream_versions(cargo_toml: str, new_version: str):
with open(cargo_toml) as f:
data = f.read()
Expand Down Expand Up @@ -101,6 +116,9 @@ def main():
new_version = args.new_version
repo_root = Path(__file__).parent.parent.absolute()

print(f'Updating workspace in {repo_root} to {new_version}')
update_workspace_version(new_version)

print(f'Updating datafusion crate versions in {repo_root} to {new_version}')
for cargo_toml in crates.values():
update_datafusion_version(cargo_toml, new_version)
Expand Down

0 comments on commit 967af1b

Please sign in to comment.