Skip to content

[7.x][Transform] use ISO dates in output instead of epoch millis (#65584) #65952

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 7, 2020

Conversation

hendrikmuhs
Copy link

Transform writes dates as epoch millis, this does not work for historic data in some cases or is
unsupported. Dates should be written as such. With this PR transform starts writing dates in ISO
format, but as existing transform might rely on the format it provides backwards compatibility for
old jobs as well as a setting to write dates as epoch millis.

fixes #63787
backport #65584

…65584)

Transform writes dates as epoch millis, this does not work for historic data in some cases or is
unsupported. Dates should be written as such. With this PR transform starts writing dates in ISO
format, but as existing transform might rely on the format it provides backwards compatibility for
old jobs as well as a setting to write dates as epoch millis.

fixes elastic#63787
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml/Transform)


Transform no longer writes dates used in a `group_by` as `epoch_millis` but as
formatted ISO string. Previously constructed transforms will still use `epoch_millis`.
You can configure and change the output format in the settings of the transform.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lcawl I added this to document the change, can you have a look?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I merged it for now, to unblock code changes. Feel free to change it.

@hendrikmuhs hendrikmuhs merged commit 8e377da into elastic:7.x Dec 7, 2020
@hendrikmuhs hendrikmuhs deleted the transform-date-not-epoch-7x branch December 7, 2020 16:18
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