Class: Fluent::BigQuery::DateTimeFieldSchema
Instance Attribute Summary
Attributes inherited from FieldSchema
#mode, #name
Instance Method Summary
collapse
Methods inherited from FieldSchema
#format, #initialize, #to_h
Instance Method Details
174
175
176
177
178
179
180
|
# File 'lib/fluent/plugin/bigquery/schema.rb', line 174
def format_one(value, is_load: false)
if value.respond_to?(:strftime)
value.strftime("%Y-%m-%dT%H:%M:%S.%6L")
else
value
end
end
|
#type ⇒ Object
170
171
172
|
# File 'lib/fluent/plugin/bigquery/schema.rb', line 170
def type
:datetime
end
|