lib/google/cloud/bigquery/schema/field.rb in google-cloud-bigquery-1.10.0 vs lib/google/cloud/bigquery/schema/field.rb in google-cloud-bigquery-1.11.0

- old
+ new

@@ -547,11 +547,11 @@ # TODO: do we need to raise if no block was given? raise ArgumentError, "a block is required" unless block_given? nested_field = add_field name, :record, description: description, - mode: mode + mode: mode yield nested_field nested_field end # @private @@ -600,14 +600,14 @@ def add_field name, type, description: nil, mode: :nullable frozen_check! new_gapi = Google::Apis::BigqueryV2::TableFieldSchema.new( - name: String(name), - type: verify_type(type), + name: String(name), + type: verify_type(type), description: description, - mode: verify_mode(mode), - fields: [] + mode: verify_mode(mode), + fields: [] ) # Remove any existing field of this name @gapi.fields ||= [] @gapi.fields.reject! { |f| f.name == new_gapi.name }