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

[Discover] Surrounding document views breaks on date nanos with custom formatter #92595

Closed
timroes opened this issue Feb 24, 2021 · 2 comments
Closed
Labels
bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application regression Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@timroes
Copy link
Contributor

timroes commented Feb 24, 2021

In 7.12 there is a scenario where the surrounding document view in Discover will break with a cryptic ES error:

Screenshot 2021-02-15 at 19 26 57

This happens in the following situation:

  • You have an index pattern using a date_nanos field as it's primary timestamp
  • That date_nanos fields has a format applied in it's ES mapping, that does NOT include strict_date_optional_time_nanos

Workaround

Either of the following does solve that problem.

  • Turn the discover:searchFieldsFromSource advanced setting on. This will read back from _source instead of the fields API, causing e.g. runtime fields not to appear anymore in Discover.
  • Make sure strict_date_optional_time_nanos is part of your format option for that date_nanos fields in the ES mapping.

Fix

Blocked on elastic/elasticsearch#69192

Once this is solved we need to make sure we leverage that mechanism in Kibana to not have this error anymore.

@timroes timroes added bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application regression Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Feb 24, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@timroes
Copy link
Contributor Author

timroes commented Jul 1, 2021

This has been resolved as of 7.13.0

@timroes timroes closed this as completed Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application regression Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

2 participants