shivadarshan-devadiga commented on code in PR #13827: URL: https://github.com/apache/gluten/pull/13827#discussion_r4769721490
########## 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: Thanks @philo-he, done in https://github.com/apache/gluten/commit/b97bf58f93a923f23148eb62ef612c83867b120e: removed GlutenIgnoreCorruptFilesTest, kept Spark's Enabling/disabling ignoreCorruptFiles excluded with the new reason, and added ORC to the VeloxScanSuite test, so it now covers Parquet and ORC with the V1 and V2 scans. -- 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]
