Skip to content

Commit

Permalink
Fix regression with timestamp field with pyarrow backend
Browse files Browse the repository at this point in the history
  • Loading branch information
polyaxon-ci committed Jun 30, 2023
1 parent f5d3918 commit 9469531
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions traceml/traceml/events/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,9 @@ def read(
sep=V1Event._SEPARATOR,
engine="pyarrow",
)
# Pyarrow automatically converts timestamp fields
if "timestamp" in df.columns:
df["timestamp"] = df["timestamp"].astype(str)
elif isinstance(data, dict):
df = pd.DataFrame.from_dict(data)
else:
Expand Down

0 comments on commit 9469531

Please sign in to comment.