Skip to content

Commit bd9f071

Browse files
authored
feat: Add date support when converting from python to feast types (feast-dev#4918)
add date type to python_type_to_feast_value_type Signed-off-by: niklasvm <niklasvm@gmail.com>
1 parent 44a4889 commit bd9f071

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sdk/python/feast/type_map.py

+1
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ def python_type_to_feast_value_type(
164164
"datetime64[ns]": ValueType.UNIX_TIMESTAMP,
165165
"datetime64[ns, tz]": ValueType.UNIX_TIMESTAMP, # special dtype of pandas
166166
"datetime64[ns, utc]": ValueType.UNIX_TIMESTAMP,
167+
"date": ValueType.UNIX_TIMESTAMP,
167168
"category": ValueType.STRING,
168169
}
169170

0 commit comments

Comments
 (0)