mirror of
https://github.com/apache/impala.git
synced 2026-02-02 15:00:38 -05:00
The SUBPLAN node will open its right child node many times in its GetNext(), depending on how many rows generated from its left child. The right child of a SUBPLAN node is a subtree of operators. They should not add codegen info into profile in their Open() method since it will be invoked repeatedly. Currently, DataSink and UnionNode have such an issue. This patch fixes them by adding the codegen info to profile in Close() instead of Open(), just like what we did in IMPALA-11200. Tests: - Add e2e tests Change-Id: I99a0a842df63a03c61024e2b77d5118ca63a2b2d Reviewed-on: http://gerrit.cloudera.org:8080/20037 Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Reviewed-by: Csaba Ringhofer <csringhofer@cloudera.com>
2.3 KiB
2.3 KiB