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

[data views] remove _timestamp field overrides #121772

Merged

Conversation

mattkime
Copy link
Contributor

@mattkime mattkime commented Dec 21, 2021

Summary

#111238 - allowed fields that start with an underscore (aside form meta fields) to be part of a data view but there was existing code that overrode the type of any field named _timestamp which is fine if its a date field but breaks most searches if its anything else.

_timestamp field was removed from ES quite a while ago so we can simply stop overriding its type - elastic/elasticsearch#18980

closes: #121710

Release notes: bug fix

Allow fields named _timestamp to be non-date types

@mattkime mattkime changed the title remove _timestamp field overrides [data views] remove _timestamp field overrides Dec 21, 2021
@mattkime mattkime marked this pull request as ready for review December 21, 2021 14:59
@mattkime mattkime requested a review from a team as a code owner December 21, 2021 14:59
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServicesSv)

Copy link
Member

@tsullivan tsullivan left a comment

Choose a reason for hiding this comment

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

LGTM

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@mattkime mattkime merged commit 5512037 into elastic:main Dec 21, 2021
@mattkime mattkime added the auto-backport Deprecated - use backport:version if exact versions are needed label Dec 21, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 21, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 21, 2021
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
8.0
7.17

The backport PRs will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Dec 21, 2021
kibanamachine added a commit that referenced this pull request Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Feature:Data Views Data Views code and UI - index patterns before 8.0 release_note:fix v7.17.0 v8.0.0 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Index pattern always treats field named "_timestamp" as a date regardless of mapping
6 participants