You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2024/01/25 13:04:16 UTC

[PR] Update minimum rust version to 1.71 [arrow-datafusion]

alamb opened a new pull request, #8997:
URL: https://github.com/apache/arrow-datafusion/pull/8997

   ## Which issue does this PR close?
   N/A
   
   ## Rationale for this change
   
   1. the new version of `env_logger` requires rust 1.71: https://github.com/apache/arrow-datafusion/pull/8944
   
   
   We currently have a MSRV of 1.70 which seems to have been released about 6 months ago: https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1700-2023-06-01
   
   MSRV 1.71 would be 2 months later in 2023-08-03:  https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1711-2023-08-03
   
   Most recent rust is 1.75: released end of De 2023
   https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1750-2023-12-28
   
   ## What changes are included in this PR?
   Update Minimum rust version to 1.71
   <!--
   There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR.
   -->
   
   ## Are these changes tested?
   Covered by existing tests
   <!--
   We typically require tests for all PRs in order to:
   1. Prevent the code from being accidentally broken by subsequent changes
   2. Serve as another way to document the expected behavior of the code
   
   If tests are not included in your PR, please explain why (for example, are they covered by existing tests)?
   -->
   
   ## Are there any user-facing changes?
   
   <!--
   If there are user-facing changes then we may require documentation to be updated before approving the PR.
   -->
   
   <!--
   If there are any breaking changes to public APIs, please add the `api change` label.
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update minimum rust version to 1.71 [arrow-datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #8997:
URL: https://github.com/apache/arrow-datafusion/pull/8997#discussion_r1470305188


##########
datafusion/core/Cargo.toml:
##########
@@ -27,7 +27,7 @@ homepage = { workspace = true }
 repository = { workspace = true }
 license = { workspace = true }
 authors = { workspace = true }
-rust-version = "1.70"
+rust-version = "1.71"

Review Comment:
   Done in 9280b7a166814bc6f3660c7471fb9858ac8bde3a



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update minimum rust version to 1.71 [arrow-datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #8997:
URL: https://github.com/apache/arrow-datafusion/pull/8997#issuecomment-1918935834

   > Should we upgrade to 1.75 to avoid two upgrades? The latest version of one of our dependencies, `ahash`, requires 1.75 and we will hit problems sooner or later
   
   Going up to the latest stable would be good from my perspective. 
   
   I think we should decide what our policy is and document it. @comphead 's recent change https://github.com/apache/arrow-datafusion/pull/9071 documents what the test is but not what the policy is (aka when we will update the value). 
   
   @Ted-Jiang  also filed https://github.com/apache/arrow-datafusion/issues/8743
   
   Here is my proposal -- I'll a "MSRV policy" ticket with proposal, and we can have a larger community discussion around that.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update minimum rust version to 1.71 [arrow-datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #8997:
URL: https://github.com/apache/arrow-datafusion/pull/8997#discussion_r1472760515


##########
datafusion/core/Cargo.toml:
##########
@@ -27,7 +27,7 @@ homepage = { workspace = true }
 repository = { workspace = true }
 license = { workspace = true }
 authors = { workspace = true }
-rust-version = "1.70"
+rust-version = "1.71"

Review Comment:
   Ok, I found out again. The reason the version is replicated is that `cargo msrv verify` doesn't support workspace versions
   
   Thus if you do `cd datafusion/core && cargo msrv verify`, it fails like 
   
   ```
   Fetching index
   Unable to find key 'package.rust-version' (or 'package.metadata.msrv') in '/Users/andrewlamb/Software/arrow-datafusion/Cargo.toml'
   ```
   
   I have fixed that 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update minimum rust version to 1.71 [arrow-datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #8997:
URL: https://github.com/apache/arrow-datafusion/pull/8997#discussion_r1468842152


##########
datafusion/core/Cargo.toml:
##########
@@ -27,7 +27,7 @@ homepage = { workspace = true }
 repository = { workspace = true }
 license = { workspace = true }
 authors = { workspace = true }
-rust-version = "1.70"
+rust-version = "1.71"

Review Comment:
   That is an excellent idea.  I vaguely (but perhaps incorrectly) remember something related to releasing was tricky with MSRV -- @andygrove  do you remember? Would it be ok to switch the sub crates to use the workspace version?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update minimum rust version to 1.71 [arrow-datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #8997:
URL: https://github.com/apache/arrow-datafusion/pull/8997#issuecomment-1918968483

   Ok, after some more consideration, I propose we change this PR to update to 1.72 to close @Ted-Jiang's https://github.com/apache/arrow-datafusion/issues/8743 and hopefully unblock ahash updates, and then we have the larger discussion about MSRV policy with the wider community


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update minimum rust version to 1.72 [arrow-datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #8997:
URL: https://github.com/apache/arrow-datafusion/pull/8997#issuecomment-1919423872

   > lgtm thanks @alamb let me know if we need a review for MSRV policy or dscussion
   
   Thanks @comphead  -- let's have the MSRV policy discussion on https://github.com/apache/arrow-datafusion/issues/9082


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update minimum rust version to 1.72 [arrow-datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #8997:
URL: https://github.com/apache/arrow-datafusion/pull/8997#discussion_r1473395793


##########
datafusion/core/Cargo.toml:
##########
@@ -27,7 +27,9 @@ homepage = { workspace = true }
 repository = { workspace = true }
 license = { workspace = true }
 authors = { workspace = true }
-rust-version = "1.70"
+# Specify MSRV here as `cargo msrv` doesn't support workspace version and fails with
+# "Unable to find key 'package.rust-version' (or 'package.metadata.msrv') in 'arrow-datafusion/Cargo.toml'"
+rust-version = "1.72"

Review Comment:
   ```suggestion
   # https://github.com/foresterre/cargo-msrv/issues/590
   rust-version = "1.72"
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update minimum rust version to 1.72 [arrow-datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #8997:
URL: https://github.com/apache/arrow-datafusion/pull/8997#discussion_r1473396243


##########
datafusion/core/Cargo.toml:
##########
@@ -27,7 +27,7 @@ homepage = { workspace = true }
 repository = { workspace = true }
 license = { workspace = true }
 authors = { workspace = true }
-rust-version = "1.70"
+rust-version = "1.71"

Review Comment:
   Thanks @Jefffrey  -- I have added an issue ref as a comment so we don't forget it in the future



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update minimum rust version to 1.71 [arrow-datafusion]

Posted by "ozankabak (via GitHub)" <gi...@apache.org>.
ozankabak commented on PR #8997:
URL: https://github.com/apache/arrow-datafusion/pull/8997#issuecomment-1918846009

   Should we upgrade to 1.75 to avoid two upgrades? The latest version of one of our dependencies, `ahash`, requires 1.75 and we will hit problems sooner or later


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update minimum rust version to 1.72 [arrow-datafusion]

Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead merged PR #8997:
URL: https://github.com/apache/arrow-datafusion/pull/8997


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update minimum rust version to 1.72 [arrow-datafusion]

Posted by "Omega359 (via GitHub)" <gi...@apache.org>.
Omega359 commented on PR #8997:
URL: https://github.com/apache/arrow-datafusion/pull/8997#issuecomment-1927094492

   @alamb You missed the cli Dockerfile unfortunately - it's still 1.70 and won't build without bumping up the version.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update minimum rust version to 1.72 [arrow-datafusion]

Posted by "Jefffrey (via GitHub)" <gi...@apache.org>.
Jefffrey commented on code in PR #8997:
URL: https://github.com/apache/arrow-datafusion/pull/8997#discussion_r1473386395


##########
datafusion/core/Cargo.toml:
##########
@@ -27,7 +27,7 @@ homepage = { workspace = true }
 repository = { workspace = true }
 license = { workspace = true }
 authors = { workspace = true }
-rust-version = "1.70"
+rust-version = "1.71"

Review Comment:
   Tracking issue for that in cargo msrv: https://github.com/foresterre/cargo-msrv/issues/590



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update minimum rust version to 1.72 [arrow-datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #8997:
URL: https://github.com/apache/arrow-datafusion/pull/8997#issuecomment-1927382742

   > @alamb You missed the cli Dockerfile unfortunately - it's still 1.70 and won't build without bumping up the version.
   
   Will fix


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update minimum rust version to 1.72 [arrow-datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #8997:
URL: https://github.com/apache/arrow-datafusion/pull/8997#discussion_r1472763868


##########
datafusion/expr/src/expr.rs:
##########
@@ -853,13 +853,8 @@ const SEED: ahash::RandomState = ahash::RandomState::with_seeds(0, 0, 0, 0);
 
 impl PartialOrd for Expr {
     fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
-        let mut hasher = SEED.build_hasher();
-        self.hash(&mut hasher);
-        let s = hasher.finish();
-
-        let mut hasher = SEED.build_hasher();
-        other.hash(&mut hasher);
-        let o = hasher.finish();
+        let s = SEED.hash_one(self);

Review Comment:
   Clippy failed on this for me with the updated MSRV so I did what it told me



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update minimum rust version to 1.71 [arrow-datafusion]

Posted by "Jefffrey (via GitHub)" <gi...@apache.org>.
Jefffrey commented on code in PR #8997:
URL: https://github.com/apache/arrow-datafusion/pull/8997#discussion_r1468660678


##########
datafusion/core/Cargo.toml:
##########
@@ -27,7 +27,7 @@ homepage = { workspace = true }
 repository = { workspace = true }
 license = { workspace = true }
 authors = { workspace = true }
-rust-version = "1.70"
+rust-version = "1.71"

Review Comment:
   Could we take this opportunity to set this as same as workspace? e.g.
   
   https://github.com/apache/arrow-datafusion/blob/7a5f2054305fd92852b589473afbc9bb034379d7/datafusion/physical-plan/Cargo.toml#L29
   
   Unless its preferable to keep these separate? (even though they currently are the same)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org