From 0564af089f86934cab79a96ff9a5992a471b934c Mon Sep 17 00:00:00 2001
From: Spencer Schrock <sschrock@google.com>
Date: Mon, 27 Mar 2023 12:08:54 -0700
Subject: [PATCH] :bug: Restore upload of existing raw result Big Query data
 (#2795)

Signed-off-by: Spencer Schrock <sschrock@google.com>
---
 cron/internal/format/bq.raw.schema | 96 ++++++++++++++++++++++++++++++
 1 file changed, 96 insertions(+)

diff --git a/cron/internal/format/bq.raw.schema b/cron/internal/format/bq.raw.schema
index 7f519f41ee2..04c756642c3 100644
--- a/cron/internal/format/bq.raw.schema
+++ b/cron/internal/format/bq.raw.schema
@@ -331,6 +331,102 @@
         "mode": "REPEATED",
         "name": "defaultBranchCommits",
         "type": "RECORD"
+      },
+      {
+        "description": "",
+        "fields": [
+          {
+            "description": "",
+            "mode": "NULLABLE",
+            "name": "number",
+            "type": "STRING"
+          },
+          {
+            "description": "",
+            "mode": "NULLABLE",
+            "name": "platform",
+            "type": "STRING"
+          },
+          {
+            "description": "",
+            "mode": "REPEATED",
+            "name": "reviews",
+            "type": "RECORD",
+            "fields": [
+              {
+                "description": "",
+                "mode": "NULLABLE",
+                "name": "reviewer",
+                "type": "RECORD",
+                "fields": [
+                  {
+                    "description": "",
+                    "mode": "NULLABLE",
+                    "name": "login",
+                    "type": "STRING"
+                  }
+                ]
+              },
+              {
+                "description": "",
+                "mode": "NULLABLE",
+                "name": "state",
+                "type": "STRING"
+              }
+            ]
+          },
+          {
+            "description": "",
+            "mode": "REPEATED",
+            "name": "authors",
+            "type": "RECORD",
+            "fields": [
+              {
+                "description": "",
+                "mode": "NULLABLE",
+                "name": "login",
+                "type": "STRING"
+              }
+            ]
+          },
+          {
+            "description": "",
+            "mode": "REPEATED",
+            "name": "commits",
+            "type": "RECORD",
+            "fields": [
+              {
+                "description": "",
+                "mode": "NULLABLE",
+                "name": "committer",
+                "type": "RECORD",
+                "fields": [
+                  {
+                    "description": "",
+                    "mode": "NULLABLE",
+                    "name": "login",
+                    "type": "STRING"
+                  }
+                ]
+              },
+              {
+                "description": "",
+                "mode": "NULLABLE",
+                "name": "message",
+                "type": "STRING"
+              },
+              {
+                "description": "",
+                "mode": "NULLABLE",
+                "name": "sha",
+                "type": "STRING"
+              }
+            ]
+          }
+        ],
+        "mode": "REPEATED",
+        "name": "defaultBranchChangesets",
+        "type": "RECORD"
       }
     ],
     "mode": "NULLABLE",