You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by al...@apache.org on 2023/01/02 15:06:01 UTC
[arrow-datafusion] branch master updated: Fix datafusion-physical-expr compiling with blake3/traits-preview enabled (#4784)
This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git
The following commit(s) were added to refs/heads/master by this push:
new ad96d4162 Fix datafusion-physical-expr compiling with blake3/traits-preview enabled (#4784)
ad96d4162 is described below
commit ad96d4162b816887885f49e9bfba848780393bcf
Author: BoredPerson <39...@users.noreply.github.com>
AuthorDate: Mon Jan 2 16:05:56 2023 +0100
Fix datafusion-physical-expr compiling with blake3/traits-preview enabled (#4784)
Co-authored-by: Simon Klier <si...@neodyme.io>
---
datafusion/physical-expr/src/crypto_expressions.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/datafusion/physical-expr/src/crypto_expressions.rs b/datafusion/physical-expr/src/crypto_expressions.rs
index 205cb989a..c940933b1 100644
--- a/datafusion/physical-expr/src/crypto_expressions.rs
+++ b/datafusion/physical-expr/src/crypto_expressions.rs
@@ -123,7 +123,7 @@ impl DigestAlgorithm {
Self::Blake3 => ScalarValue::Binary(value.map(|v| {
let mut digest = Blake3::default();
digest.update(v);
- digest.finalize().as_bytes().to_vec()
+ Blake3::finalize(&digest).as_bytes().to_vec()
})),
})
}
@@ -149,7 +149,7 @@ impl DigestAlgorithm {
opt.map(|x| {
let mut digest = Blake3::default();
digest.update(x);
- digest.finalize().as_bytes().to_vec()
+ Blake3::finalize(&digest).as_bytes().to_vec()
})
})
.collect();
@@ -180,7 +180,7 @@ impl DigestAlgorithm {
opt.map(|x| {
let mut digest = Blake3::default();
digest.update(x.as_bytes());
- digest.finalize().as_bytes().to_vec()
+ Blake3::finalize(&digest).as_bytes().to_vec()
})
})
.collect();