GitHub user gengliangwang opened a pull request:
https://github.com/apache/spark/pull/21814
[SPARK-24858][SQL] Avoid unnecessary parquet footer reads
## What changes were proposed in this pull request?
Currently the same Parquet footer is read twice in the function
`buildReaderWithPartitionValues` of ParquetFileFormat if filter push down is
enabled.
Fix it with simple changes.
## How was this patch tested?
Unit test
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gengliangwang/spark parquetFooter
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21814.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #21814
----
commit 5667cc57022d840aecb6c7d0c967e2a3448a4928
Author: Gengliang Wang <gengliang.wang@...>
Date: 2018-07-19T06:43:45Z
Avoid unnecessary parquet footer reading
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]