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

Fix datafusion-cli publishing #9955

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Apr 4, 2024

Which issue does this PR close?

Part of #9682

Rationale for this change

I had to add a version field to the datafusion-cli Cargo.toml file to correctly publish to crates.io as datafusion-common did not specify a version

What changes are included in this PR?

  1. Remove direct datafuson_common and use existing datafusion dependency

Are these changes tested?

By C

Are there any user-facing changes?

No

@@ -26,9 +26,9 @@ use datafusion::arrow::array::{ArrayRef, StringArray};
use datafusion::arrow::datatypes::{DataType, Field, Schema};
use datafusion::arrow::record_batch::RecordBatch;
use datafusion::common::exec_err;
use datafusion::common::instant::Instant;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the whole change is datafusion_common --> datafusion::common

@@ -45,7 +45,6 @@ datafusion = { path = "../datafusion/core", version = "37.0.0", features = [
"unicode_expressions",
"compression",
] }
datafusion-common = { path = "../datafusion/common" }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had to change this to

datafusion-common = { path = "../datafusion/common", version="37.0.0" }

to get datafusion-cli to publish. I think removing the whole dependency is cleaner that adding a version that needs to be kept in sync

@alamb alamb mentioned this pull request Apr 4, 2024
8 tasks
Copy link
Contributor

@Jefffrey Jefffrey left a comment

Choose a reason for hiding this comment

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

👍

@alamb
Copy link
Contributor Author

alamb commented Apr 5, 2024

Thank you @Jefffrey

@alamb alamb merged commit 2b0a7db into apache:main Apr 5, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants