mirror of
https://github.com/apache/impala.git
synced 2026-02-03 09:00:39 -05:00
Currently, the runtime profile tests contain row regex searches which try to find matches by comparing the regex line by line. This form of search is inefficient. So, while updating the tests for the aggregated profile IMPALA-9846, this performance is being improved by accumulating row regexes together, then searching the entire profile at once. In order to support this improvement, we need to correct the current `row_regex` syntax being used. The current tests use greedy regex like ".*" at the beginning and end of `row_regex` searches. Using greedy regex in this way consumes more resources and is redundant for the current implementation. To fix this, these additional greedy regex characters(i.e. `.*`,`.+`) are being removed or replaced across all the runtime profile tests. Change-Id: I1460c2d22b03c06aa43c85f78fa9e05cec2775ec Reviewed-on: http://gerrit.cloudera.org:8080/23864 Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Reviewed-by: Csaba Ringhofer <csringhofer@cloudera.com>