Skip to content

Commit 22f7134

Browse files
committed
rebase_main
1 parent 5971c93 commit 22f7134

1 file changed

Lines changed: 3 additions & 86 deletions

File tree

dev/diffs/4.0.1.diff

Lines changed: 3 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -110,20 +110,6 @@ index 4410fe50912..43bcce2a038 100644
110110
case _ => Map[String, String]()
111111
}
112112
val childrenInfo = children.flatMap {
113-
diff --git a/sql/core/src/test/resources/sql-tests/analyzer-results/charvarchar.sql.out b/sql/core/src/test/resources/sql-tests/analyzer-results/charvarchar.sql.out
114-
index 524797015a2..09576b169bd 100644
115-
--- a/sql/core/src/test/resources/sql-tests/analyzer-results/charvarchar.sql.out
116-
+++ b/sql/core/src/test/resources/sql-tests/analyzer-results/charvarchar.sql.out
117-
@@ -738,3 +738,9 @@ SELECT to_varchar(12454.8, '99,999.9S')
118-
-- !query analysis
119-
Project [to_char(12454.8, 99,999.9S) AS to_char(12454.8, 99,999.9S)#x]
120-
+- OneRowRelation
121-
+
122-
+
123-
+-- !query
124-
+SET spark.comet.parquet.write.enabled = true
125-
+-- !query analysis
126-
+SetCommand (spark.comet.parquet.write.enabled,Some(true))
127113
diff --git a/sql/core/src/test/resources/sql-tests/analyzer-results/listagg-collations.sql.out b/sql/core/src/test/resources/sql-tests/analyzer-results/listagg-collations.sql.out
128114
index 7aca17dcb25..8afeb3b4a2f 100644
129115
--- a/sql/core/src/test/resources/sql-tests/analyzer-results/listagg-collations.sql.out
@@ -337,22 +323,6 @@ index 21a3ce1e122..f4762ab98f0 100644
337323
SET spark.sql.ansi.enabled = false;
338324

339325
-- In COMPENSATION views get invalidated if the type can't cast
340-
diff --git a/sql/core/src/test/resources/sql-tests/results/charvarchar.sql.out b/sql/core/src/test/resources/sql-tests/results/charvarchar.sql.out
341-
index 3026e463947..bf3f20906f1 100644
342-
--- a/sql/core/src/test/resources/sql-tests/results/charvarchar.sql.out
343-
+++ b/sql/core/src/test/resources/sql-tests/results/charvarchar.sql.out
344-
@@ -1254,3 +1254,11 @@ SELECT to_varchar(12454.8, '99,999.9S')
345-
struct<to_char(12454.8, 99,999.9S):string>
346-
-- !query output
347-
12,454.8+
348-
+
349-
+
350-
+-- !query
351-
+SET spark.comet.parquet.write.enabled = true
352-
+-- !query schema
353-
+struct<key:string,value:string>
354-
+-- !query output
355-
+spark.comet.parquet.write.enabled true
356326
diff --git a/sql/core/src/test/resources/sql-tests/results/listagg-collations.sql.out b/sql/core/src/test/resources/sql-tests/results/listagg-collations.sql.out
357327
index 1f8c5822e7d..b7de4e28813 100644
358328
--- a/sql/core/src/test/resources/sql-tests/results/listagg-collations.sql.out
@@ -739,57 +709,6 @@ index 9c529d14221..2f1bc3880fd 100644
739709
}.flatten
740710
assert(filters.contains(GreaterThan(scan.logicalPlan.output.head, Literal(5L))))
741711
}
742-
diff --git a/sql/core/src/test/scala/org/apache/spark/sql/IgnoreComet.scala b/sql/core/src/test/scala/org/apache/spark/sql/IgnoreComet.scala
743-
new file mode 100644
744-
index 00000000000..5691536c114
745-
--- /dev/null
746-
+++ b/sql/core/src/test/scala/org/apache/spark/sql/IgnoreComet.scala
747-
@@ -0,0 +1,45 @@
748-
+/*
749-
+ * Licensed to the Apache Software Foundation (ASF) under one or more
750-
+ * contributor license agreements. See the NOTICE file distributed with
751-
+ * this work for additional information regarding copyright ownership.
752-
+ * The ASF licenses this file to You under the Apache License, Version 2.0
753-
+ * (the "License"); you may not use this file except in compliance with
754-
+ * the License. You may obtain a copy of the License at
755-
+ *
756-
+ * http://www.apache.org/licenses/LICENSE-2.0
757-
+ *
758-
+ * Unless required by applicable law or agreed to in writing, software
759-
+ * distributed under the License is distributed on an "AS IS" BASIS,
760-
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
761-
+ * See the License for the specific language governing permissions and
762-
+ * limitations under the License.
763-
+ */
764-
+
765-
+package org.apache.spark.sql
766-
+
767-
+import org.scalactic.source.Position
768-
+import org.scalatest.Tag
769-
+
770-
+import org.apache.spark.sql.test.SQLTestUtils
771-
+
772-
+/**
773-
+ * Tests with this tag will be ignored when Comet is enabled (e.g., via `ENABLE_COMET`).
774-
+ */
775-
+case class IgnoreComet(reason: String) extends Tag("DisableComet")
776-
+case class IgnoreCometNativeIcebergCompat(reason: String) extends Tag("DisableComet")
777-
+case class IgnoreCometNativeDataFusion(reason: String) extends Tag("DisableComet")
778-
+case class IgnoreCometNativeScan(reason: String) extends Tag("DisableComet")
779-
+
780-
+/**
781-
+ * Helper trait that disables Comet for all tests regardless of default config values.
782-
+ */
783-
+trait IgnoreCometSuite extends SQLTestUtils {
784-
+ override protected def test(testName: String, testTags: Tag*)(testFun: => Any)
785-
+ (implicit pos: Position): Unit = {
786-
+ if (isCometEnabled) {
787-
+ ignore(testName + " (disabled when Comet is on)", testTags: _*)(testFun)
788-
+ } else {
789-
+ super.test(testName, testTags: _*)(testFun)
790-
+ }
791-
+ }
792-
+}
793712
diff --git a/sql/core/src/test/scala/org/apache/spark/sql/InjectRuntimeFilterSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/InjectRuntimeFilterSuite.scala
794713
index 7d7185ae6c1..442a5bddeb8 100644
795714
--- a/sql/core/src/test/scala/org/apache/spark/sql/InjectRuntimeFilterSuite.scala
@@ -1427,20 +1346,18 @@ index 11e9547dfc5..be9ae40ab3d 100644
14271346
val t2 = "T_2"
14281347

14291348
diff --git a/sql/core/src/test/scala/org/apache/spark/sql/collation/DefaultCollationTestSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/collation/DefaultCollationTestSuite.scala
1430-
index 77ed8b411e3..18b51f0c939 100644
1349+
index 77ed8b411e3..b82f70c0071 100644
14311350
--- a/sql/core/src/test/scala/org/apache/spark/sql/collation/DefaultCollationTestSuite.scala
14321351
+++ b/sql/core/src/test/scala/org/apache/spark/sql/collation/DefaultCollationTestSuite.scala
1433-
@@ -17,9 +17,9 @@
1352+
@@ -17,7 +17,7 @@
14341353

14351354
package org.apache.spark.sql.collation
14361355

14371356
-import org.apache.spark.sql.{AnalysisException, DataFrame, QueryTest, Row}
1357+
+import org.apache.spark.sql.{AnalysisException, DataFrame, IgnoreComet, QueryTest, Row}
14381358
import org.apache.spark.sql.catalyst.expressions.AttributeReference
14391359
import org.apache.spark.sql.catalyst.plans.logical.Project
1440-
+import org.apache.spark.sql.{AnalysisException, DataFrame, IgnoreComet, QueryTest, Row}
14411360
import org.apache.spark.sql.catalyst.util.CollationFactory
1442-
import org.apache.spark.sql.connector.DatasourceV2SQLBase
1443-
import org.apache.spark.sql.test.SharedSparkSession
14441361
@@ -220,7 +220,7 @@ abstract class DefaultCollationTestSuite extends QueryTest with SharedSparkSessi
14451362
}
14461363
}

0 commit comments

Comments
 (0)