This is an automated email from the ASF dual-hosted git repository. granthenke pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/kudu.git
commit 32d1ac04bbd4b1bb8eecb35e05bde3bfa384a3ed Author: Grant Henke <[email protected]> AuthorDate: Fri Jan 17 13:50:15 2020 -0600 [benchmark] Fix printing in get-job-stats-from-mysql.py This is a follow up to 8463663 that fixes to print function output in get-job-stats-from-mysql.py. Change-Id: I10dfcb87647ea73b9089cd5a7a035665adb50494 Reviewed-on: http://gerrit.cloudera.org:8080/15067 Tested-by: Grant Henke <[email protected]> Reviewed-by: Andrew Wong <[email protected]> --- src/kudu/scripts/get-job-stats-from-mysql.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/kudu/scripts/get-job-stats-from-mysql.py b/src/kudu/scripts/get-job-stats-from-mysql.py index 2fd062f..a7b52e2 100644 --- a/src/kudu/scripts/get-job-stats-from-mysql.py +++ b/src/kudu/scripts/get-job-stats-from-mysql.py @@ -52,7 +52,6 @@ with con: days = sys.argv[2] cur.execute("select workload, runtime, build_number from kudu_perf_tpch where workload like %s AND curr_date >= DATE_SUB(NOW(), INTERVAL %s DAY) and runtime != 0 ORDER BY workload, build_number, curr_date", (workload, days)) rows = cur.fetchall() - print('workload', '\t', 'runtime', '\t', 'build_number') + print('workload \truntime \tbuild_number') for row in rows: - print(row[0], '\t', row[1], '\t', row[2]) - + print("{} \t{} \t{}".format(row[0], row[1], row[2]))
