philo-he commented on code in PR #13827:
URL: https://github.com/apache/gluten/pull/13827#discussion_r4765123529


##########
gluten-ut/common/src/test/scala/org/apache/spark/sql/GlutenIgnoreCorruptFilesTest.scala:
##########
@@ -0,0 +1,94 @@
+/*
+ * 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.spark.sql
+
+import org.apache.spark.SparkException
+import org.apache.spark.sql.internal.SQLConf
+
+import org.apache.hadoop.fs.Path
+
+/**
+ * Spark's "Enabling/disabling ignoreCorruptFiles" test of ParquetQuerySuite 
and OrcQuerySuite.
+ *
+ * When ignoreCorruptFiles is set, Gluten falls back the scan, so Spark skips 
the corrupt files as
+ * the original test expects. Otherwise the native scan reads them and fails 
with its own error,
+ * where the original test checks the message of Spark's reader, so this test 
only checks that the
+ * query fails.
+ */
+trait GlutenIgnoreCorruptFilesTest extends GlutenSQLTestsBaseTrait { self: 
QueryTest =>

Review Comment:
   The new VeloxScanSuite test already checks this behavior: with the conf and 
the read option, for V1 and V2, and whether the scan falls back. 
GlutenIgnoreCorruptFilesTest tests the same thing again, and it is added to the 
ORC and Parquet suites for each of the 4 Spark versions. I'd suggest removing 
GlutenIgnoreCorruptFilesTest and keeping Spark's original "Enabling/disabling 
ignoreCorruptFiles" test excluded, with the new exclusion reason. If ORC 
coverage is needed, an ORC case can be added to VeloxScanSuite.



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