Github user liancheng commented on a diff in the pull request:
https://github.com/apache/spark/pull/11934#discussion_r57421991
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileSourceStrategy.scala
---
@@ -57,9 +57,10 @@ import org.apache.spark.sql.types._
private[sql] object FileSourceStrategy extends Strategy with Logging {
def apply(plan: LogicalPlan): Seq[SparkPlan] = plan match {
case PhysicalOperation(projects, filters, l@LogicalRelation(files:
HadoopFsRelation, _, _))
- if (files.fileFormat.toString == "TestFileFormat" ||
- files.fileFormat.isInstanceOf[parquet.DefaultSource]) &&
- files.sqlContext.conf.parquetFileScan =>
+ if files.fileFormat.toString == "TestFileFormat" ||
+ (files.fileFormat.isInstanceOf[parquet.DefaultSource] &&
+ files.sqlContext.conf.parquetFileScan) ||
+ files.fileFormat.isInstanceOf[text.DefaultSource] =>
--- End diff --
No need to be addressed in this PR, but we should probably have a more
general way to do this kind of data source dispatching. For example, ORC is in
the hive package and can't be directly referenced here.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]