Skip to content

Commit

Permalink
Added back comments deleted by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
liancheng committed May 23, 2014
1 parent ae60ab3 commit f5b257d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ private[sql] abstract class SparkStrategies extends QueryPlanner[SparkPlan] {
case PhysicalOperation(projectList, filters: Seq[Expression], relation: ParquetRelation) => {
val prunePushedDownFilter =
if (sparkContext.conf.getBoolean(ParquetFilters.PARQUET_FILTER_PUSHDOWN_ENABLED, true)) {
// Note: filters cannot be pushed down to Parquet if they contain more complex
// expressions than simple "Attribute cmp Literal" comparisons. Here we remove
// all filters that have been pushed down. Note that a predicate such as
// "(A AND B) OR C" can result in "A OR C" being pushed down.
Some((filter: Expression) => {
val recordFilter = ParquetFilters.createFilter(filter)
if (!recordFilter.isDefined) {
Expand Down

0 comments on commit f5b257d

Please sign in to comment.