Github user yhuai commented on a diff in the pull request:
https://github.com/apache/spark/pull/9651#discussion_r44671945
--- Diff:
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFilterSuite.scala
---
@@ -294,7 +294,7 @@ class ParquetFilterSuite extends QueryTest with
ParquetTest with SharedSQLContex
// If the "part = 1" filter gets pushed down, this query will
throw an exception since
// "part" is not a valid column in the actual Parquet file
checkAnswer(
- sqlContext.read.parquet(path).filter("part = 1"),
+ sqlContext.read.parquet(dir.getCanonicalPath).filter("part = 1"),
--- End diff --
path is a partition dir and if we load that single dir, I am not sure we
should attach part as a column to your table.
---
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]