lib/google/cloud/bigquery/schema/field.rb in google-cloud-bigquery-1.38.1 vs lib/google/cloud/bigquery/schema/field.rb in google-cloud-bigquery-1.39.0

- old
+ new

@@ -469,10 +469,10 @@ # # @return [Symbol, Array, Hash] The type. # def param_type param_type = type.to_sym - param_type = Hash[fields.map { |field| [field.name.to_sym, field.param_type] }] if record? + param_type = fields.to_h { |field| [field.name.to_sym, field.param_type] } if record? param_type = [param_type] if repeated? param_type end ##