Skip to content

Commit 6688933

Browse files
merged
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
1 parent ceb75a2 commit 6688933

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sdk/python/feast/types.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import pyarrow
1919

2020
from feast.value_type import ValueType
21+
from feast.utils import _utc_now
2122

2223
PRIMITIVE_FEAST_TYPES_TO_VALUE_TYPES = {
2324
"INVALID": "UNKNOWN",
@@ -187,7 +188,8 @@ def __str__(self):
187188
Int64: pyarrow.int64(),
188189
Float32: pyarrow.float32(),
189190
Float64: pyarrow.float64(),
190-
UnixTimestamp: pyarrow.timestamp(),
191+
# Note: datetime only supports microseconds https://github.com/python/cpython/blob/3.8/Lib/datetime.py#L1559
192+
UnixTimestamp: pyarrow.timestamp('us', tz=_utc_now().tzname()),
191193
}
192194

193195

0 commit comments

Comments
 (0)