Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: deduplicate workspace fields in Cargo.toml #5519

Merged
merged 3 commits into from
Mar 10, 2023

Conversation

waynexia
Copy link
Member

@waynexia waynexia commented Mar 9, 2023

Which issue does this PR close?

Closes #.

Rationale for this change

It hurts when I want to test some local change on arrow/parquet/datafusion. I have to change all those dependencies to the local path. So I try to simplify our Cargo.toml using the new cargo feature workspace deduplicate which is stabilized in 1.64.

What changes are included in this PR?

Two major parts in Cargo.toml files are changes:

  • package metadata
  • dependencies

This should also reduce the work when bumping and releasing new versions. For the dependencies, I currently only include those arrow/parquet stuff in workspace dependencies. I can add others as well if need.

Are these changes tested?

Are there any user-facing changes?

The rust-version field is changed from 1.62 to 1.64.

But I think it's fine to bump our MSRV. 1.62 is too old to compile datafusion. I used to encounter an error that says "the feature error_in_core does not exist" (it comes from one of our dependencies). However the feature PR is merged in rust-lang/rust#99917 on Aug 24, 2022 (while 1.62 is released in June, 2022)

waynexia added 2 commits March 9, 2023 14:48
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@github-actions github-actions bot added core Core DataFusion crate logical-expr Logical plan and expressions optimizer Optimizer rules physical-expr Physical Expressions sql SQL Planner substrait labels Mar 9, 2023
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@jackwener
Copy link
Member

jackwener commented Mar 9, 2023

Great job! Thanks @waynexia
cc @alamb @tustvold @Dandandan

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @waynexia ! We also use the workspace feature in IOx https://github.com/influxdata/influxdb_iox/blob/9d00fec091f18639aba9ca8a7df7939d0ccc13ca/Cargo.toml#L118-L124 and it works great!

cc @andygrove I don't think this will change the publish flow when creating a new release

Copy link
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andygrove andygrove merged commit 8b5c1c7 into apache:main Mar 10, 2023
@ursabot
Copy link

ursabot commented Mar 10, 2023

Benchmark runs are scheduled for baseline = f4f4d70 and contender = 8b5c1c7. 8b5c1c7 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ec2-t3-xlarge-us-east-2] ec2-t3-xlarge-us-east-2
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on test-mac-arm] test-mac-arm
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-i9-9960x] ursa-i9-9960x
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-thinkcentre-m75q] ursa-thinkcentre-m75q
Buildkite builds:
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate logical-expr Logical plan and expressions optimizer Optimizer rules physical-expr Physical Expressions sql SQL Planner substrait
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants