Added double toto_str/from_str, returned by emr create_cluster
This commit is contained in:
parent
ed861ecae1
commit
4092657472
@ -718,6 +718,8 @@ def to_str(value, spec):
|
|||||||
return str(value)
|
return str(value)
|
||||||
elif vtype == 'float':
|
elif vtype == 'float':
|
||||||
return str(value)
|
return str(value)
|
||||||
|
elif vtype == 'double':
|
||||||
|
return str(value)
|
||||||
elif vtype == 'timestamp':
|
elif vtype == 'timestamp':
|
||||||
return datetime.datetime.utcfromtimestamp(
|
return datetime.datetime.utcfromtimestamp(
|
||||||
value).replace(tzinfo=pytz.utc).isoformat()
|
value).replace(tzinfo=pytz.utc).isoformat()
|
||||||
@ -737,6 +739,8 @@ def from_str(value, spec):
|
|||||||
return int(value)
|
return int(value)
|
||||||
elif vtype == 'float':
|
elif vtype == 'float':
|
||||||
return float(value)
|
return float(value)
|
||||||
|
elif vtype == 'double':
|
||||||
|
return float(value)
|
||||||
elif vtype == 'timestamp':
|
elif vtype == 'timestamp':
|
||||||
return value
|
return value
|
||||||
elif vtype == 'string':
|
elif vtype == 'string':
|
||||||
|
Loading…
Reference in New Issue
Block a user