andygrove commented on code in PR #7837:
URL: https://github.com/apache/datafusion-comet/pull/7837#discussion_r4790715344


##########
spark/src/test/scala/org/apache/comet/CometAssertNotNullSuite.scala:
##########
@@ -0,0 +1,367 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.comet
+
+import org.apache.spark.sql.{Column, CometTestBase, DataFrame}
+import org.apache.spark.sql.catalyst.expressions.{And, CaseWhen, Cast, 
CreateNamedStruct, Divide, GetStructField, GreaterThan, If, IsNotNull, IsNull, 
Literal, Or}
+import org.apache.spark.sql.catalyst.expressions.objects.AssertNotNull
+import org.apache.spark.sql.comet.CometBaseAggregate
+import org.apache.spark.sql.comet.execution.shuffle.CometShuffleExchangeExec
+import org.apache.spark.sql.execution.SparkPlan
+import org.apache.spark.sql.functions.{col, sum, transform}
+import org.apache.spark.sql.internal.SQLConf
+import org.apache.spark.sql.types.{DoubleType, IntegerType, NullType}
+
+import org.apache.comet.rules.CometExecRule
+
+/**
+ * `AssertNotNull` is a `NonSQLExpression`, so SQL file tests cannot call it. 
These tests build it
+ * through the DataFrame API, as Spark's encoders and V2 table writes do.
+ */
+class CometAssertNotNullSuite extends CometTestBase {
+  import testImplicits._

Review Comment:
   The `import testImplicits._` on this line is unused. `./mvnw test-compile 
-Pspark-3.5,delta -Pstrict-warnings` stops with `Unused import` here, and 
`scalafix` will flag it too. Could you drop it?



-- 
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