From a6d6afa8654907701aab2724f940be8f63edd0ea Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 14 Apr 2021 14:09:50 -0700 Subject: [PATCH] feat: new JSON type through BigQuery Write (#178) Committer: @yirutang PiperOrigin-RevId: 368275477 Source-Author: Google APIs Source-Date: Tue Apr 13 12:51:14 2021 -0700 Source-Repo: googleapis/googleapis Source-Sha: 95e7f055087a43f638ffd9a0f25ce36dbea87953 Source-Link: https://github.com/googleapis/googleapis/commit/95e7f055087a43f638ffd9a0f25ce36dbea87953 --- google/cloud/bigquery_storage_v1beta2/proto/table.proto | 3 +++ google/cloud/bigquery_storage_v1beta2/types/table.py | 1 + synth.metadata | 6 +++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/google/cloud/bigquery_storage_v1beta2/proto/table.proto b/google/cloud/bigquery_storage_v1beta2/proto/table.proto index 670a4a64..77ca829a 100644 --- a/google/cloud/bigquery_storage_v1beta2/proto/table.proto +++ b/google/cloud/bigquery_storage_v1beta2/proto/table.proto @@ -76,6 +76,9 @@ message TableFieldSchema { // Interval INTERVAL = 14; + + // JSON, String + JSON = 15; } enum Mode { diff --git a/google/cloud/bigquery_storage_v1beta2/types/table.py b/google/cloud/bigquery_storage_v1beta2/types/table.py index f91b07b4..870d8a68 100644 --- a/google/cloud/bigquery_storage_v1beta2/types/table.py +++ b/google/cloud/bigquery_storage_v1beta2/types/table.py @@ -74,6 +74,7 @@ class Type(proto.Enum): NUMERIC = 12 BIGNUMERIC = 13 INTERVAL = 14 + JSON = 15 class Mode(proto.Enum): r"""""" diff --git a/synth.metadata b/synth.metadata index b4d32c3b..9b947bd1 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/python-bigquery-storage.git", - "sha": "f5f999b779e85483d8dcb66885004b2ce0469464" + "sha": "1503f575a78496a770d05d5a7ab4dbcbf1476cd8" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "b1614aa0668564ec41d78b72cf776e0292ffc98c", - "internalRef": "366811078" + "sha": "95e7f055087a43f638ffd9a0f25ce36dbea87953", + "internalRef": "368275477" } }, {