Skip to content

Commit

Permalink
feat: Add date support when converting from python to feast types (fe…
Browse files Browse the repository at this point in the history
…ast-dev#4918)

add date type to python_type_to_feast_value_type

Signed-off-by: niklasvm <[email protected]>
  • Loading branch information
niklasvm authored and tmihalac committed Jan 21, 2025
1 parent e5b0ab4 commit 3396987
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdk/python/feast/type_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ def python_type_to_feast_value_type(
"datetime64[ns]": ValueType.UNIX_TIMESTAMP,
"datetime64[ns, tz]": ValueType.UNIX_TIMESTAMP, # special dtype of pandas
"datetime64[ns, utc]": ValueType.UNIX_TIMESTAMP,
"date": ValueType.UNIX_TIMESTAMP,
"category": ValueType.STRING,
}

Expand Down

0 comments on commit 3396987

Please sign in to comment.