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

joemcdonnell 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 1152eef9b IMPALA-14501: (Addendum) Fix single node perf run
1152eef9b is described below

commit 1152eef9bb851e5bb64e6a230e6367c5de7adbef
Author: Michael Smith <[email protected]>
AuthorDate: Fri Oct 24 13:18:26 2025 -0700

    IMPALA-14501: (Addendum) Fix single node perf run
    
    Fixes open in generate_profile_files to read binary with Python 3,
    matching generate_profile_file.
    
    Change-Id: Ibd815e7eb989d7a2bcf52cadfcde4f355c18a148
    Reviewed-on: http://gerrit.cloudera.org:8080/23596
    Reviewed-by: Joe McDonnell <[email protected]>
    Tested-by: Joe McDonnell <[email protected]>
---
 bin/single_node_perf_run.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/single_node_perf_run.py b/bin/single_node_perf_run.py
index 7623a3d52..d141f8694 100755
--- a/bin/single_node_perf_run.py
+++ b/bin/single_node_perf_run.py
@@ -229,7 +229,7 @@ def generate_profile_files(name, hash, base_dir):
   profile_dir = os.path.join(base_dir, hash + "_profiles")
   if not os.path.exists(profile_dir):
     os.makedirs(profile_dir)
-  with open(name) as fid:
+  with open(name, 'rb') as fid:
     data = json.loads(fid.read().decode("utf-8", "ignore"))
     iter_num = {}
     # For each query

Reply via email to