File tree 4 files changed +37
-2
lines changed
google/cloud/bigquery_storage_v1/types
samples/generated_samples
4 files changed +37
-2
lines changed Original file line number Diff line number Diff line change @@ -790,6 +790,21 @@ class StorageErrorCode(proto.Enum):
790
790
Offset already exists.
791
791
OFFSET_OUT_OF_RANGE (9):
792
792
Offset out of range.
793
+ CMEK_NOT_PROVIDED (10):
794
+ Customer-managed encryption key (CMEK) not
795
+ provided for CMEK-enabled data.
796
+ INVALID_CMEK_PROVIDED (11):
797
+ Customer-managed encryption key (CMEK) was
798
+ incorrectly provided.
799
+ CMEK_ENCRYPTION_ERROR (12):
800
+ There is an encryption error while using
801
+ customer-managed encryption key.
802
+ KMS_SERVICE_ERROR (13):
803
+ Key Management Service (KMS) service returned
804
+ an error.
805
+ KMS_PERMISSION_DENIED (14):
806
+ Permission denied while using
807
+ customer-managed encryption key.
793
808
"""
794
809
STORAGE_ERROR_CODE_UNSPECIFIED = 0
795
810
TABLE_NOT_FOUND = 1
@@ -801,6 +816,11 @@ class StorageErrorCode(proto.Enum):
801
816
SCHEMA_MISMATCH_EXTRA_FIELDS = 7
802
817
OFFSET_ALREADY_EXISTS = 8
803
818
OFFSET_OUT_OF_RANGE = 9
819
+ CMEK_NOT_PROVIDED = 10
820
+ INVALID_CMEK_PROVIDED = 11
821
+ CMEK_ENCRYPTION_ERROR = 12
822
+ KMS_SERVICE_ERROR = 13
823
+ KMS_PERMISSION_DENIED = 14
804
824
805
825
code : StorageErrorCode = proto .Field (
806
826
proto .ENUM ,
Original file line number Diff line number Diff line change @@ -230,6 +230,16 @@ class TableReadOptions(proto.Message):
230
230
output format
231
231
232
232
This field is a member of `oneof`_ ``output_format_serialization_options``.
233
+ sample_percentage (float):
234
+ Optional. Specifies a table sampling percentage.
235
+ Specifically, the query planner will use TABLESAMPLE SYSTEM
236
+ (sample_percentage PERCENT). This samples at the file-level.
237
+ It will randomly choose for each file whether to include
238
+ that file in the sample returned. Note, that if the table
239
+ only has one file, then TABLESAMPLE SYSTEM will select that
240
+ file and return all returnable rows contained within.
241
+
242
+ This field is a member of `oneof`_ ``_sample_percentage``.
233
243
"""
234
244
235
245
selected_fields : MutableSequence [str ] = proto .RepeatedField (
@@ -252,6 +262,11 @@ class TableReadOptions(proto.Message):
252
262
oneof = "output_format_serialization_options" ,
253
263
message = avro .AvroSerializationOptions ,
254
264
)
265
+ sample_percentage : float = proto .Field (
266
+ proto .DOUBLE ,
267
+ number = 5 ,
268
+ optional = True ,
269
+ )
255
270
256
271
name : str = proto .Field (
257
272
proto .STRING ,
Original file line number Diff line number Diff line change 8
8
],
9
9
"language" : " PYTHON" ,
10
10
"name" : " google-cloud-bigquery-storage" ,
11
- "version" : " 2.19.1 "
11
+ "version" : " 0.1.0 "
12
12
},
13
13
"snippets" : [
14
14
{
Original file line number Diff line number Diff line change 8
8
],
9
9
"language" : " PYTHON" ,
10
10
"name" : " google-cloud-bigquery-storage" ,
11
- "version" : " 2.19.1 "
11
+ "version" : " 0.1.0 "
12
12
},
13
13
"snippets" : [
14
14
{
You can’t perform that action at this time.
0 commit comments