Github user gatorsmile commented on the pull request:
https://github.com/apache/spark/pull/10278#issuecomment-164204488
Great! : )
Let me also post the test case I did in the latest 1.5. Without my fix, the
first call of show() did not return the row (2, 0).
```scala
withSQLConf(SQLConf.PARQUET_FILTER_PUSHDOWN_ENABLED.key -> "true") {
withTempPath { dir =>
val path = s"${dir.getCanonicalPath}/table1"
(1 to 5).map(i => (i, (i%2).toString)).toDF("a",
"b").write.parquet(path)
val df = sqlContext.read.parquet(path).where("not (a = 2 and b in
('1'))")
df.show()
val df1 = sqlContext.read.parquet(path).where("not (a = 2) or not(b
in ('1'))")
df1.show()
}
}
```
---
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]