-
- Downloads
[SPARK-14343][SQL] Proper column pruning for text data source
## What changes were proposed in this pull request? Text data source ignores requested schema, and may give wrong result when the only data column is not requested. This may happen when only partitioning column(s) are requested for a partitioned text table. ## How was this patch tested? New test case added in `TextSuite`. Author: Cheng Lian <lian@databricks.com> Closes #13431 from liancheng/spark-14343-partitioned-text-table.
Showing
- sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/text/TextFileFormat.scala 21 additions, 10 deletions...spark/sql/execution/datasources/text/TextFileFormat.scala
- sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/text/TextSuite.scala 14 additions, 3 deletions...ache/spark/sql/execution/datasources/text/TextSuite.scala
Please register or sign in to comment