mirror of
https://github.com/apache/impala.git
synced 2026-02-01 12:00:22 -05:00
This patch modifies the dynamic query progress reporting in impala-shell by adding an extra query progress bar below the scan progress bar. The query progress is calculated using the number of completed fragment instances divided by the total number of fragment instances. Compared to the scan progress, which is calculated based on completed scan ranges divided by the total scan ranges, the query progress provides a more accurate reflection of the actual completion progress of the query. Particularly for computationally intensive queries involving complex aggregations or sorting, such as tpcds query78, there is often additional computation time required after the scanning is complete. In such cases, displaying only 100% scan progress would be inaccurate. Change-Id: I11a704885505442b7499a026fcee3b86696cd064 Reviewed-on: http://gerrit.cloudera.org:8080/20672 Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Reviewed-by: Michael Smith <michael.smith@cloudera.com>