Class: Fluent::BigQuery::DateFieldSchema
Instance Attribute Summary
Attributes inherited from FieldSchema
#mode, #name
Instance Method Summary
collapse
Methods inherited from FieldSchema
#format, #initialize, #to_h
Instance Method Details
160
161
162
163
164
165
166
|
# File 'lib/fluent/plugin/bigquery/schema.rb', line 160
def format_one(value, is_load: false)
if value.respond_to?(:strftime)
value.strftime("%Y-%m-%d")
else
value
end
end
|
#type ⇒ Object
156
157
158
|
# File 'lib/fluent/plugin/bigquery/schema.rb', line 156
def type
:date
end
|