You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "comphead (via GitHub)" <gi...@apache.org> on 2025/10/14 20:52:29 UTC
Re: [PR] Feat: Add sha1 function impl [datafusion-comet]
comphead commented on code in PR #2471:
URL: https://github.com/apache/datafusion-comet/pull/2471#discussion_r2430433039
##########
spark/src/main/scala/org/apache/comet/serde/hash.scala:
##########
@@ -85,6 +85,19 @@ object CometSha2 extends CometExpressionSerde[Sha2] {
}
}
+object CometSha1 extends CometExpressionSerde[Sha1] {
+ override def convert(
+ expr: Sha1,
+ inputs: Seq[Attribute],
+ binding: Boolean): Option[ExprOuterClass.Expr] = {
+ if (!HashUtils.isSupportedType(expr)) {
+ return None
Review Comment:
lets return a fallback reason like
```
if (!isTypeSupported(dt)) {
withInfo(expr, s"data type not supported: $dt")
return None
}
```
--
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@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org