Skip to content

Commit

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

add date type to python_type_to_feast_value_type

Signed-off-by: niklasvm <niklasvm@gmail.com>
  • Loading branch information
niklasvm authored Jan 15, 2025
1 parent 44a4889 commit bd9f071
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 bd9f071

Please sign in to comment.