mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
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:
committed by
Joe McDonnell
parent
3398f20afe
commit
1152eef9bb
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user