Arnab Karmakar has posted comments on this change. ( http://gerrit.cloudera.org:8080/25211 )
Change subject: IMPALA-14941: Fix #Rows in Subplan nodes ...................................................................... Patch Set 4: (3 comments) Thanks for working on this! Looks good to me, just left a few comments on the testing. http://gerrit.cloudera.org:8080/#/c/25211/4/tests/query_test/test_observability.py File tests/query_test/test_observability.py: http://gerrit.cloudera.org:8080/#/c/25211/4/tests/query_test/test_observability.py@1435 PS4, Line 1435: def test_subplan_summary(self): would moving the tests to TestObservability fit better instead of TestQueryStates which is about query states. http://gerrit.cloudera.org:8080/#/c/25211/4/tests/query_test/test_observability.py@1441 PS4, Line 1441: "select count(*) from functional_parquet.arrays_big t, t.int_array a": 19487 The new cases use a SUBPLAN whose input is a plain scan and the patch changes accounting for every node under a SUBPLAN, so a SELECT, aggregation, or sort under the SUBPLAN is untested. Can we add one such shape for testing? http://gerrit.cloudera.org:8080/#/c/25211/4/tests/query_test/test_observability.py@1461 PS4, Line 1461: def test_nested_subplan_summary(self): The rows['num_rows'] > 0 check seems weak for nested subplans. The inner SUBPLAN is reset and reopened for each row, so with this patch its #Rows is only the last outer row's contribution. If that row is empty, the inner SUBPLAN shows 0 and the test may fail. And, a bug that undercounts but stays non-zero would still pass. Maybe we should assert the outer SUBPLAN's #Rows too which is deterministic. -- To view, visit http://gerrit.cloudera.org:8080/25211 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I95b7bcae782e15ff5563b3c385a9d5ee07d45e6c Gerrit-Change-Number: 25211 Gerrit-PatchSet: 4 Gerrit-Owner: Quanlong Huang <[email protected]> Gerrit-Reviewer: Arnab Karmakar <[email protected]> Gerrit-Comment-Date: Tue, 27 Oct 2026 04:24:16 +0000 Gerrit-HasComments: Yes
