google-cloud-bigquery-storage-v1 0.13.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3bf502ff137eb32c42f1c3886398c54f31ff15dfa6666c6286632b0235776574
4
- data.tar.gz: 830ffcd051c2ca5934baf1f71c8686294b0f11a7a58a71393f95bf13ed7a4190
3
+ metadata.gz: 6eb514d8a87f950d7333d8a24f08ba2e8e5710fdbe055f890bea49f3b742b0a4
4
+ data.tar.gz: cd8f0057d5ad2da143516f146c04c208e6f219f29fef22271d26be21d7e08b2e
5
5
  SHA512:
6
- metadata.gz: 8747321713667c4a27420608af7b15dd230f58b0aa63b158973713dfe8a9db5c54232ea2c19e530c62421602366077c22bdaaf50fe612267c43bbc374de8533d
7
- data.tar.gz: ec6716922908c2053bfd2405880ecac28a7c4486f6d93b9def7260031e087d95aa6772d32e073864c1ae10d9acc412052f7565d51d098548496ede14ad5b3ddc
6
+ metadata.gz: c521cfb6d963a905aa31e3f213220c1c5dd939ac8c42d78a630f0f3f6c41656c7e17f3c4446e6ea1c8bec8356390697288670ffd1c637fc9144607ef199df9a2
7
+ data.tar.gz: adae465e4f76681dacefd2fd7057c0a972beb7053b236a3bfec484b48371477469e700b2c030b8434bc6e030716ce3962143cc6965929f67f4b2d433402c8d52
@@ -12,6 +12,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  optional :serialized_binary_rows, :bytes, 1
13
13
  optional :row_count, :int64, 2
14
14
  end
15
+ add_message "google.cloud.bigquery.storage.v1.AvroSerializationOptions" do
16
+ optional :enable_display_name_attribute, :bool, 1
17
+ end
15
18
  end
16
19
  end
17
20
 
@@ -22,6 +25,7 @@ module Google
22
25
  module V1
23
26
  AvroSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.storage.v1.AvroSchema").msgclass
24
27
  AvroRows = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.storage.v1.AvroRows").msgclass
28
+ AvroSerializationOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.storage.v1.AvroSerializationOptions").msgclass
25
29
  end
26
30
  end
27
31
  end
@@ -35,6 +35,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
35
35
  optional :row_restriction, :string, 2
36
36
  oneof :output_format_serialization_options do
37
37
  optional :arrow_serialization_options, :message, 3, "google.cloud.bigquery.storage.v1.ArrowSerializationOptions"
38
+ optional :avro_serialization_options, :message, 4, "google.cloud.bigquery.storage.v1.AvroSerializationOptions"
38
39
  end
39
40
  end
40
41
  add_message "google.cloud.bigquery.storage.v1.ReadStream" do
@@ -22,7 +22,7 @@ module Google
22
22
  module Bigquery
23
23
  module Storage
24
24
  module V1
25
- VERSION = "0.13.0"
25
+ VERSION = "0.14.0"
26
26
  end
27
27
  end
28
28
  end
@@ -44,6 +44,24 @@ module Google
44
44
  include ::Google::Protobuf::MessageExts
45
45
  extend ::Google::Protobuf::MessageExts::ClassMethods
46
46
  end
47
+
48
+ # Contains options specific to Avro Serialization.
49
+ # @!attribute [rw] enable_display_name_attribute
50
+ # @return [::Boolean]
51
+ # Enable displayName attribute in Avro schema.
52
+ #
53
+ # The Avro specification requires field names to be alphanumeric. By
54
+ # default, in cases when column names do not conform to these requirements
55
+ # (e.g. non-ascii unicode codepoints) and Avro is requested as an output
56
+ # format, the CreateReadSession call will fail.
57
+ #
58
+ # Setting this field to true, populates avro field names with a placeholder
59
+ # value and populates a "displayName" attribute for every avro field with the
60
+ # original column name.
61
+ class AvroSerializationOptions
62
+ include ::Google::Protobuf::MessageExts
63
+ extend ::Google::Protobuf::MessageExts::ClassMethods
64
+ end
47
65
  end
48
66
  end
49
67
  end
@@ -88,10 +88,53 @@ module Google
88
88
  # Options dictating how we read a table.
89
89
  # @!attribute [rw] selected_fields
90
90
  # @return [::Array<::String>]
91
- # Names of the fields in the table that should be read. If empty, all
92
- # fields will be read. If the specified field is a nested field, all
93
- # the sub-fields in the field will be selected. The output field order is
94
- # unrelated to the order of fields in selected_fields.
91
+ # Optional. The names of the fields in the table to be returned. If no
92
+ # field names are specified, then all fields in the table are returned.
93
+ #
94
+ # Nested fields -- the child elements of a STRUCT field -- can be selected
95
+ # individually using their fully-qualified names, and will be returned as
96
+ # record fields containing only the selected nested fields. If a STRUCT
97
+ # field is specified in the selected fields list, all of the child elements
98
+ # will be returned.
99
+ #
100
+ # As an example, consider a table with the following schema:
101
+ #
102
+ # {
103
+ # "name": "struct_field",
104
+ # "type": "RECORD",
105
+ # "mode": "NULLABLE",
106
+ # "fields": [
107
+ # {
108
+ # "name": "string_field1",
109
+ # "type": "STRING",
110
+ # . "mode": "NULLABLE"
111
+ # },
112
+ # {
113
+ # "name": "string_field2",
114
+ # "type": "STRING",
115
+ # "mode": "NULLABLE"
116
+ # }
117
+ # ]
118
+ # }
119
+ #
120
+ # Specifying "struct_field" in the selected fields list will result in a
121
+ # read session schema with the following logical structure:
122
+ #
123
+ # struct_field {
124
+ # string_field1
125
+ # string_field2
126
+ # }
127
+ #
128
+ # Specifying "struct_field.string_field1" in the selected fields list will
129
+ # result in a read session schema with the following logical structure:
130
+ #
131
+ # struct_field {
132
+ # string_field1
133
+ # }
134
+ #
135
+ # The order of the fields in the read session schema is derived from the
136
+ # table schema and does not correspond to the order in which the fields are
137
+ # specified in this list.
95
138
  # @!attribute [rw] row_restriction
96
139
  # @return [::String]
97
140
  # SQL text filtering statement, similar to a WHERE clause in a query.
@@ -107,6 +150,9 @@ module Google
107
150
  # @!attribute [rw] arrow_serialization_options
108
151
  # @return [::Google::Cloud::Bigquery::Storage::V1::ArrowSerializationOptions]
109
152
  # Optional. Options specific to the Apache Arrow output format.
153
+ # @!attribute [rw] avro_serialization_options
154
+ # @return [::Google::Cloud::Bigquery::Storage::V1::AvroSerializationOptions]
155
+ # Optional. Options specific to the Apache Avro output format
110
156
  class TableReadOptions
111
157
  include ::Google::Protobuf::MessageExts
112
158
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-bigquery-storage-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-28 00:00:00.000000000 Z
11
+ date: 2022-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common