Skip to content

Commit 502a092

Browse files
feat: add support for listing arima, automl, boosted tree, DNN, and matrix factorization models (#328)
* changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * chore: update proto definitions for bigquery/v2 to support BQML statistics PiperOrigin-RevId: 337113354 Source-Author: Google APIs <[email protected]> Source-Date: Wed Oct 14 10:04:20 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 215c12ade72d9d9616457d9b8b2f8a37f38e79f3 Source-Link: googleapis/googleapis@215c12a * fix: manually revert `type` to `type_` breaking change This should allow us to merge the fixes for `list_models` and avoid a breaking change until `proto-plus` becomes acceptable for our use. * feat: add BIGNUMERIC to data type enums Co-authored-by: Tim Swast <[email protected]>
1 parent b0dd892 commit 502a092

12 files changed

+1282
-15
lines changed

google/cloud/bigquery/enums.py

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"DATETIME",
3434
"GEOGRAPHY",
3535
"NUMERIC",
36+
"BIGNUMERIC",
3637
)
3738
)
3839

@@ -81,6 +82,7 @@ class SqlTypeNames(str, enum.Enum):
8182
FLOAT = "FLOAT"
8283
FLOAT64 = "FLOAT"
8384
NUMERIC = "NUMERIC"
85+
BIGNUMERIC = "BIGNUMERIC"
8486
BOOLEAN = "BOOLEAN"
8587
BOOL = "BOOLEAN"
8688
GEOGRAPHY = "GEOGRAPHY" # NOTE: not available in legacy types

google/cloud/bigquery_v2/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
from .types.standard_sql import StandardSqlDataType
2828
from .types.standard_sql import StandardSqlField
2929
from .types.standard_sql import StandardSqlStructType
30+
from .types.table_reference import TableReference
3031

3132

3233
__all__ = (
@@ -41,4 +42,5 @@
4142
"StandardSqlDataType",
4243
"StandardSqlField",
4344
"StandardSqlStructType",
45+
"TableReference",
4446
)

google/cloud/bigquery_v2/proto/encryption_config.proto

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Google LLC.
1+
// Copyright 2020 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
//
1514

1615
syntax = "proto3";
1716

0 commit comments

Comments
 (0)