From 77fbc1ca2a430e36a9bae80b2bd419d1a8b8e6c0 Mon Sep 17 00:00:00 2001
From: Craig Tiller <ctiller@google.com>
Date: Mon, 31 Oct 2016 14:04:03 -0700
Subject: [PATCH] Fix some typos

---
 tools/run_tests/performance/bq_upload_result.py         | 2 +-
 tools/run_tests/performance/scenario_result_schema.json | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/run_tests/performance/bq_upload_result.py b/tools/run_tests/performance/bq_upload_result.py
index 5158b22c60..9b817b5896 100755
--- a/tools/run_tests/performance/bq_upload_result.py
+++ b/tools/run_tests/performance/bq_upload_result.py
@@ -120,7 +120,7 @@ def _flatten_result_inplace(scenario_result):
   scenario_result['serverCores'] = json.dumps(scenario_result['serverCores'])
   scenario_result['clientSuccess'] = json.dumps(scenario_result['clientSuccess'])
   scenario_result['serverSuccess'] = json.dumps(scenario_result['serverSuccess'])
-  scenario_result['requestResults'] = json.dumps(scenario_result['requestResults'])
+  scenario_result['requestResults'] = json.dumps(scenario_result.get('requestResults', []))
 
 
 def _populate_metadata_inplace(scenario_result):
diff --git a/tools/run_tests/performance/scenario_result_schema.json b/tools/run_tests/performance/scenario_result_schema.json
index d32d979fe5..3285f212d7 100644
--- a/tools/run_tests/performance/scenario_result_schema.json
+++ b/tools/run_tests/performance/scenario_result_schema.json
@@ -210,7 +210,7 @@
     "mode": "NULLABLE"
   },
   {
-    "name": "request_results",
+    "name": "requestResults",
     "type": "STRING",
     "mode": "NULLABLE"
   }
-- 
GitLab