Skip to content

When staging entities dataset timestamps are being truncated to ms - #1207

Merged
pyalex merged 2 commits into
feast-dev:masterfrom
pyalex:entities-timestamp-floor
Dec 2, 2020
Merged

When staging entities dataset timestamps are being truncated to ms#1207
pyalex merged 2 commits into
feast-dev:masterfrom
pyalex:entities-timestamp-floor

Conversation

@pyalex

@pyalex pyalex commented Dec 1, 2020

Copy link
Copy Markdown
Collaborator

Signed-off-by: Oleksii Moskalenko moskalenko.alexey@gmail.com

What this PR does / why we need it:

Using timestamps with micro or nano seconds in entity dataset leads to exception, when pandas dataframe is being converted to parquet:

ArrowInvalid: Casting from timestamp[ns] to timestamp[ms] would lose data: 1606826389820565000

This PR fix this by truncating timestamps provided by users up to milliseconds before calling pandas.to_parquet.

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

Timestamps in entity dataset for historical retrieval are being truncated to ms

@feast-ci-bot

Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pyalex

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@pyalex pyalex changed the title When staging entities dataset floor timestamp to ms When staging entities dataset timestamps are being truncated to ms Dec 1, 2020
@pyalex pyalex added the kind/bug label Dec 2, 2020
Signed-off-by: Oleksii Moskalenko <moskalenko.alexey@gmail.com>
Signed-off-by: Oleksii Moskalenko <moskalenko.alexey@gmail.com>
@pyalex
pyalex force-pushed the entities-timestamp-floor branch from 1efbd0a to a006a25 Compare December 2, 2020 06:43
@pyalex
pyalex merged commit 8df96a1 into feast-dev:master Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants