MaxGekk opened a new pull request #34140:
URL: https://github.com/apache/spark/pull/34140


   ### What changes were proposed in this pull request?
   In the PR, I propose to take into account the SQL config 
`spark.sql.parquet.filterPushdown` while building the array of pushed down 
filters in v2 `ParquetScanBuilder`.
   
   ### Why are the changes needed?
   Before the changes, `explain()` outputs some filters even filter pushdown to 
parquet is disabled:
   ```
   == Physical Plan ==
   *(1) Filter (isnotnull(c0#7) AND (c0#7 = 1))
   +- *(1) ColumnarToRow
      +- BatchScan[c0#7] ParquetScan DataFilters: [isnotnull(c0#7), (c0#7 = 
1)], ... PushedFilters: [IsNotNull(c0), EqualTo(c0,1)] RuntimeFilters: []
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   If users parse `explain()`'s output, this PR can influence to them. But in 
general, it shouldn't. Also, need to highlight that the PR affects DSv2 only.
   
   
   ### How was this patch tested?
   By running new test in `ParquetV2FilterSuite`:
   ```
   $ build/sbt "test:testOnly *ParquetV2FilterSuite"
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to