This is an automated email from the ASF dual-hosted git repository.

comphead pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-comet.git


The following commit(s) were added to refs/heads/main by this push:
     new 8366e1ee6 Fix lint issues (#2527)
8366e1ee6 is described below

commit 8366e1ee64564b3248211e9a5bdbe151df8c3ba6
Author: andy-hf-kwok <[email protected]>
AuthorDate: Tue Oct 7 11:43:42 2025 -0700

    Fix lint issues (#2527)
---
 common/src/main/scala/org/apache/spark/sql/comet/util/Utils.scala    | 4 ++--
 common/src/main/spark-3.x/org/apache/comet/shims/CometTypeShim.scala | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/common/src/main/scala/org/apache/spark/sql/comet/util/Utils.scala 
b/common/src/main/scala/org/apache/spark/sql/comet/util/Utils.scala
index 03333a14d..036c5c9aa 100644
--- a/common/src/main/scala/org/apache/spark/sql/comet/util/Utils.scala
+++ b/common/src/main/scala/org/apache/spark/sql/comet/util/Utils.scala
@@ -223,9 +223,9 @@ object Utils extends CometTypeShim {
       writer.close()
 
       if (out.size() > 0) {
-        (batch.numRows(), cbbos.toChunkedByteBuffer)
+        (batch.numRows().toLong, cbbos.toChunkedByteBuffer)
       } else {
-        (batch.numRows(), new ChunkedByteBuffer(Array.empty[ByteBuffer]))
+        (batch.numRows().toLong, new 
ChunkedByteBuffer(Array.empty[ByteBuffer]))
       }
     }
   }
diff --git 
a/common/src/main/spark-3.x/org/apache/comet/shims/CometTypeShim.scala 
b/common/src/main/spark-3.x/org/apache/comet/shims/CometTypeShim.scala
index 14e0881e0..853f89b67 100644
--- a/common/src/main/spark-3.x/org/apache/comet/shims/CometTypeShim.scala
+++ b/common/src/main/spark-3.x/org/apache/comet/shims/CometTypeShim.scala
@@ -20,6 +20,9 @@ package org.apache.comet.shims
 
 import org.apache.spark.sql.types.DataType
 
+import scala.annotation.nowarn
+
 trait CometTypeShim {
+    @nowarn // Spark 4 feature; stubbed to false in Spark 3.x for 
compatibility.
     def isStringCollationType(dt: DataType): Boolean = false
 }
\ No newline at end of file


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

Reply via email to