This is an automated email from the ASF dual-hosted git repository.

michaelsmith pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git


The following commit(s) were added to refs/heads/master by this push:
     new bd1c54876 IMPALA-13295: Fix undefined name 'index' in 
tests/util/workload_management.py
bd1c54876 is described below

commit bd1c548760900ceb0637fa98584a6cb88d365da6
Author: stiga-huang <[email protected]>
AuthorDate: Mon Aug 12 09:56:04 2024 +0800

    IMPALA-13295: Fix undefined name 'index' in 
tests/util/workload_management.py
    
    This fixes the undefined name 'index' in
    tests/util/workload_management.py detected by the new version of
    bin/jenkins/critique-gerrit-review.py when comparing branch-4.4.0 and
    HEAD.
    
    Change-Id: I22afedffbb976c150a1705c880fe747ac2e22f29
    Reviewed-on: http://gerrit.cloudera.org:8080/21659
    Reviewed-by: Jason Fehr <[email protected]>
    Reviewed-by: Riza Suminto <[email protected]>
    Tested-by: Michael Smith <[email protected]>
---
 tests/util/workload_management.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/util/workload_management.py 
b/tests/util/workload_management.py
index 876d6c239..f4369379d 100644
--- a/tests/util/workload_management.py
+++ b/tests/util/workload_management.py
@@ -272,7 +272,7 @@ def assert_query(query_tbl, client, expected_cluster_id, 
raw_profile=None, impal
     expected = ",".join(sorted(perhost_frags.group(1).replace("(", "=")
         .replace(")", "").split(" ")))
     assert value == expected, ('per-host fragment instances incorrect.'
-        ' expected="{0}" actual="{1}"').format(expected, data[index])
+        ' expected="{0}" actual="{1}"').format(expected, value)
 
   # Backends Count
   value = column_val(TQueryTableColumn.BACKENDS_COUNT)

Reply via email to