Class: Fluent::BigQuery::TimeFieldSchema
Instance Attribute Summary
Attributes inherited from FieldSchema
#mode, #name
Instance Method Summary
collapse
Methods inherited from FieldSchema
#format, #initialize, #to_h
Instance Method Details
188
189
190
191
192
193
194
|
# File 'lib/fluent/plugin/bigquery/schema.rb', line 188
def format_one(value, is_load: false)
if value.respond_to?(:strftime)
value.strftime("%H:%M:%S.%6L")
else
value
end
end
|
#type ⇒ Object
184
185
186
|
# File 'lib/fluent/plugin/bigquery/schema.rb', line 184
def type
:time
end
|