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)
|
||||
elif vtype == 'float':
|
||||
return str(value)
|
||||
elif vtype == 'double':
|
||||
return str(value)
|
||||
elif vtype == 'timestamp':
|
||||
return datetime.datetime.utcfromtimestamp(
|
||||
value).replace(tzinfo=pytz.utc).isoformat()
|
||||
@ -737,6 +739,8 @@ def from_str(value, spec):
|
||||
return int(value)
|
||||
elif vtype == 'float':
|
||||
return float(value)
|
||||
elif vtype == 'double':
|
||||
return float(value)
|
||||
elif vtype == 'timestamp':
|
||||
return value
|
||||
elif vtype == 'string':
|
||||
|
Loading…
Reference in New Issue
Block a user