comphead commented on code in PR #2471:
URL: https://github.com/apache/datafusion-comet/pull/2471#discussion_r2430435154


##########
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:
   ```suggestion
         withInfo(expr, s"HashUtils doesn't support $expr")
         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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to