@@ -3187,6 +3187,122 @@ index 7838e62013d..8fa09652921 100644
31873187
31883188 import testImplicits._
31893189
3190+ diff --git a/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/RocksDBStateStoreCheckpointFormatV2Suite.scala b/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/RocksDBStateStoreCheckpointFormatV2Suite.scala
3191+ index ac519e713c6..38363d031be 100644
3192+ --- a/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/RocksDBStateStoreCheckpointFormatV2Suite.scala
3193+ +++ b/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/RocksDBStateStoreCheckpointFormatV2Suite.scala
3194+ @@ -25,7 +25,7 @@ import org.apache.hadoop.fs.Path
3195+ import org.scalatest.Tag
3196+
3197+ import org.apache.spark.{SparkContext, SparkException, TaskContext}
3198+ - import org.apache.spark.sql.{DataFrame, ForeachWriter}
3199+ + import org.apache.spark.sql.{DataFrame, ForeachWriter, IgnoreCometSuite}
3200+ import org.apache.spark.sql.catalyst.expressions.UnsafeRow
3201+ import org.apache.spark.sql.execution.streaming.{CommitLog, MemoryStream, StreamExecution}
3202+ import org.apache.spark.sql.execution.streaming.state.StateStoreTestsHelper
3203+ @@ -190,8 +190,14 @@ class CkptIdCollectingStateStoreProviderWrapper extends StateStoreProvider {
3204+ innerProvider.supportedCustomMetrics
3205+ }
3206+
3207+ + // Comet: skip this suite under Comet. Comet falls back to Spark for every streaming plan
3208+ + // (see CometExecRule and CometScanRule), so these tests exercise no Comet code path.
3209+ + // IgnoreCometSuite is listed before AlsoTestWithRocksDBFeatures on purpose: that trait
3210+ + // registers most tests through `super.test`, which only reaches the override when the
3211+ + // override sits after it in the linearization.
3212+ + // See https://github.com/apache/datafusion-comet/issues/5986
3213+ class RocksDBStateStoreCheckpointFormatV2Suite extends StreamTest
3214+ - with AlsoTestWithRocksDBFeatures {
3215+ + with IgnoreCometSuite with AlsoTestWithRocksDBFeatures {
3216+ import testImplicits._
3217+
3218+ val providerClassName = classOf[CkptIdCollectingStateStoreProviderWrapper].getCanonicalName
3219+ diff --git a/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/RocksDBStateStoreIntegrationSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/RocksDBStateStoreIntegrationSuite.scala
3220+ index 1f4fd7f7957..1ebea83fa08 100644
3221+ --- a/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/RocksDBStateStoreIntegrationSuite.scala
3222+ +++ b/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/RocksDBStateStoreIntegrationSuite.scala
3223+ @@ -23,6 +23,7 @@ import scala.jdk.CollectionConverters.SetHasAsScala
3224+
3225+ import org.scalatest.time.{Minute, Span}
3226+
3227+ + import org.apache.spark.sql.IgnoreCometSuite
3228+ import org.apache.spark.sql.execution.streaming.{MemoryStream, StreamingQueryWrapper}
3229+ import org.apache.spark.sql.functions.count
3230+ import org.apache.spark.sql.internal.SQLConf
3231+ @@ -30,8 +31,14 @@ import org.apache.spark.sql.streaming._
3232+ import org.apache.spark.sql.streaming.OutputMode.Update
3233+ import org.apache.spark.util.Utils
3234+
3235+ + // Comet: skip this suite under Comet. Comet falls back to Spark for every streaming plan
3236+ + // (see CometExecRule and CometScanRule), so these tests exercise no Comet code path.
3237+ + // IgnoreCometSuite is listed before AlsoTestWithRocksDBFeatures on purpose: that trait
3238+ + // registers most tests through `super.test`, which only reaches the override when the
3239+ + // override sits after it in the linearization.
3240+ + // See https://github.com/apache/datafusion-comet/issues/5986
3241+ class RocksDBStateStoreIntegrationSuite extends StreamTest
3242+ - with AlsoTestWithRocksDBFeatures {
3243+ + with IgnoreCometSuite with AlsoTestWithRocksDBFeatures {
3244+ import testImplicits._
3245+
3246+ testWithColumnFamilies("RocksDBStateStore",
3247+ diff --git a/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/RocksDBStateStoreSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/RocksDBStateStoreSuite.scala
3248+ index d4a2f333574..d6c124a5094 100644
3249+ --- a/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/RocksDBStateStoreSuite.scala
3250+ +++ b/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/RocksDBStateStoreSuite.scala
3251+ @@ -28,6 +28,7 @@ import org.scalatest.BeforeAndAfter
3252+
3253+ import org.apache.spark.{SparkConf, SparkUnsupportedOperationException}
3254+ import org.apache.spark.io.CompressionCodec
3255+ + import org.apache.spark.sql.IgnoreCometSuite
3256+ import org.apache.spark.sql.LocalSparkSession.withSparkSession
3257+ import org.apache.spark.sql.SparkSession
3258+ import org.apache.spark.sql.catalyst.InternalRow
3259+ @@ -42,8 +43,16 @@ import org.apache.spark.unsafe.Platform
3260+ import org.apache.spark.unsafe.types.UTF8String
3261+ import org.apache.spark.util.Utils
3262+
3263+ + // Comet: skip this suite under Comet. The tests target RocksDB state-store internals
3264+ + // (StateStore get/put/commit), not SQL execution paths. StateStoreSuite, the HDFS-backed
3265+ + // twin of this suite, is skipped for the same reason.
3266+ + // IgnoreCometSuite is listed before the AlsoTestWith* traits on purpose: those traits
3267+ + // register most tests through `super.test`, which only reaches the override when the
3268+ + // override sits after them in the linearization.
3269+ + // See https://github.com/apache/datafusion-comet/issues/5986
3270+ @ExtendedSQLTest
3271+ class RocksDBStateStoreSuite extends StateStoreSuiteBase[RocksDBStateStoreProvider]
3272+ + with IgnoreCometSuite
3273+ with AlsoTestWithEncodingTypes
3274+ with AlsoTestWithRocksDBFeatures
3275+ with SharedSparkSession
3276+ diff --git a/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/RocksDBSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/RocksDBSuite.scala
3277+ index 10f14d5655f..3c687cdcef6 100644
3278+ --- a/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/RocksDBSuite.scala
3279+ +++ b/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/RocksDBSuite.scala
3280+ @@ -39,6 +39,7 @@ import org.scalatest.Tag
3281+ import org.apache.spark.{SparkConf, SparkException, SparkFunSuite, TaskContext}
3282+ import org.apache.spark.internal.Logging
3283+ import org.apache.spark.io.CompressionCodec
3284+ + import org.apache.spark.sql.IgnoreCometSuite
3285+ import org.apache.spark.sql.catalyst.InternalRow
3286+ import org.apache.spark.sql.catalyst.expressions.UnsafeProjection
3287+ import org.apache.spark.sql.catalyst.util.quietly
3288+ @@ -705,9 +706,15 @@ class RocksDBStateEncoderSuite extends SparkFunSuite {
3289+ }
3290+ }
3291+
3292+ + // Comet: skip this suite under Comet. The tests target RocksDB internals (open, checkpoint,
3293+ + // changelog replay), not SQL execution paths, so nothing here runs through Comet.
3294+ + // IgnoreCometSuite is listed before AlsoTestWithRocksDBFeatures on purpose: that trait
3295+ + // registers most tests through `super.test`, which only reaches the override when the
3296+ + // override sits after it in the linearization.
3297+ + // See https://github.com/apache/datafusion-comet/issues/5986
3298+ @SlowSQLTest
3299+ - class RocksDBSuite extends AlsoTestWithRocksDBFeatures with SharedSparkSession
3300+ - with PrivateMethodTester {
3301+ + class RocksDBSuite extends IgnoreCometSuite with AlsoTestWithRocksDBFeatures
3302+ + with SharedSparkSession with PrivateMethodTester {
3303+
3304+ override protected def sparkConf: SparkConf = {
3305+ super.sparkConf
31903306diff --git a/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/StateStoreSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/StateStoreSuite.scala
31913307index 89f22186f7e..425233f00b2 100644
31923308--- a/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/StateStoreSuite.scala
0 commit comments