Joe McDonnell has submitted this change and it was merged. ( https://gerrit.cloudera.org/25240 )
Change subject: IMPALA-14510 (reapply): Disable ineffective runtime filters more aggressively ...................................................................... IMPALA-14510 (reapply): Disable ineffective runtime filters more aggressively HdfsScanner::GetNext() does a check for runtime filter effectiveness every 16 row batches. When runtime filters are evaluated at the row level, a highly selective runtime filter may eliminate so many rows that GetNext() is rarely returning a row batch. When an ineffective runtime filter is paired with this highly selective filter, the ineffective filter may never get disabled and could be evaluated on millions of rows with no benefit. For example, on a run of TPC-DS Q63, we see this in the profile for the ineffective filter: - Rows processed: 5.22M (5216355) - Rows rejected: 0 (0) - Rows total: 5.96M (5955191) This filter isn't getting disabled quickly, because it is paired with a highly selective filter on the same scan node: - Rows processed: 5.96M (5955191) - Rows rejected: 5.44M (5442260) - Rows total: 5.96M (5955191) This adds an additional check for runtime filter effectiveness that runs every 32k raw scanner rows. This means that ineffective filters get disabled even if they are paired with a highly selective filter. This is complementary to the current check in HdfsScanner::GetNext(), because the HdfsScanner check would fire earlier when none of the runtime filters are selective. This new logic only applies to file formats that evaluate runtime filters at the row level (Parquet and ORC). This disables some ineffective filters on both TPC-H and TPC-DS without a noticeable overhead. Runtime filters are disabled independently for each file, so there may still be some room for further improvement by remembering bad filters across scan range boundaries. Testing: - Ran TPC-DS with multiple settings for the threshold. 32k outperformed 64k, but the difference with 16k was small. Change-Id: I750641d462884e3965a71c22a87d04b3457f73c0 Reviewed-on: https://gerrit.cloudera.org/25240 Reviewed-by: Csaba Ringhofer <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- M be/src/exec/hdfs-scanner.cc M be/src/exec/hdfs-scanner.h M be/src/exec/orc/hdfs-orc-scanner.cc M be/src/exec/parquet/hdfs-parquet-scanner.cc 4 files changed, 29 insertions(+), 3 deletions(-) Approvals: Csaba Ringhofer: Looks good to me, approved Impala Public Jenkins: Verified -- To view, visit https://gerrit.cloudera.org/25240 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I750641d462884e3965a71c22a87d04b3457f73c0 Gerrit-Change-Number: 25240 Gerrit-PatchSet: 2 Gerrit-Owner: Joe McDonnell <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Joe McDonnell <[email protected]> Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>
