diff --git a/backends-clickhouse/src/test/scala/org/apache/gluten/execution/GlutenClickHouseNativeWriteTableSuite.scala b/backends-clickhouse/src/test/scala/org/apache/gluten/execution/GlutenClickHouseNativeWriteTableSuite.scala index 7b81924a8882..578c43292747 100644 --- a/backends-clickhouse/src/test/scala/org/apache/gluten/execution/GlutenClickHouseNativeWriteTableSuite.scala +++ b/backends-clickhouse/src/test/scala/org/apache/gluten/execution/GlutenClickHouseNativeWriteTableSuite.scala @@ -913,10 +913,12 @@ class GlutenClickHouseNativeWriteTableSuite (table_name, create_sql, insert_sql) }, (table_name, _) => - compareResultsAgainstVanillaSpark( - s"select * from $table_name", - compareResult = true, - _ => {}) + if (isSparkVersionGE("3.4")) { + compareResultsAgainstVanillaSpark( + s"select * from $table_name", + compareResult = true, + _ => {}) + } ) } }