Skip to content

Commit

Permalink
Handle Scalar type
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Delacour <[email protected]>
  • Loading branch information
Matt Delacour committed May 4, 2021
1 parent e490bc3 commit 48f31d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdk/python/feast/type_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ def _python_value_to_proto_value(feast_value_type, value) -> ProtoValue:
return ProtoValue(int32_val=int(value))
elif feast_value_type == ValueType.INT64:
return ProtoValue(int64_val=int(value))
elif feast_value_type == ValueType.UNIX_TIMESTAMP:
return ProtoValue(int64_val=int(value))
elif feast_value_type == ValueType.FLOAT:
return ProtoValue(float_val=float(value))
elif feast_value_type == ValueType.DOUBLE:
Expand Down

0 comments on commit 48f31d0

Please sign in to comment.