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 <joemcdonnell@cloudera.com>
Tested-by: Joe McDonnell <joemcdonnell@cloudera.com>
This commit is contained in:
Michael Smith
2025-10-24 13:18:26 -07:00
committed by Joe McDonnell
parent 3398f20afe
commit 1152eef9bb

View File

@@ -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