Skip to content
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

Change default format for date_nanos field (#70463) #70488

Merged
merged 3 commits into from
Mar 18, 2021

Conversation

jimczi
Copy link
Contributor

@jimczi jimczi commented Mar 17, 2021

Backport of #70463

This commit updates the default format of date_nanos field
on existing and new indices to use `strict_date_optional_time_nanos` instead of
`strict_date_optional_time`.
Using `strict_date_optional_time` as the default format for date_nanos doesn't
make sense because it accepts and parses dates with nanosecond precision,
but when it formats it drops the nanoseconds.
The change should be transparent for users, these formats accept the same input.

Relates elastic#69192
Closes elastic#67063
@jimczi jimczi merged commit 149fab6 into elastic:7.x Mar 18, 2021
@jimczi jimczi deleted the date_nanos_default_format_backport branch March 18, 2021 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant