Skip to content

[Data table vis] Choosing the Date Histogram aggregation causes the app to error out if index does not have a time field #68977

Closed

Description

Kibana version:
7.7 and 7.8

Describe the bug:
When I try to create a data table from an index without a time field, choosing the Date Histogram aggregation causes the app to error out and the screen becomes blank.

Steps to reproduce:

  1. Create and index pattern without a time field
  2. Create new data table vis
  3. Choose split rows and select Date histogram aggregation

See error

Expected behavior:
Ideally user should not be able to pick date histogram aggregation. At the very least we should be showing a user friendly error message

Screenshots (if relevant):
Elastic - Google Chrome 6_11_2020 8_29_21 PM

Errors in browser console (if relevant):
TypeError: "field" is a required parameter
at FieldParamType._this.write (https://763f010f35f1460f800915485da4ea92.europe-west1.gcp.cloud.es.io:9243/31960/bundles/plugin/data/data.plugin.js:6:257553)
at https://763f010f35f1460f800915485da4ea92.europe-west1.gcp.cloud.es.io:9243/31960/bundles/plugin/data/data.plugin.js:6:32753
at Array.forEach ()
at writeParams (https://763f010f35f1460f800915485da4ea92.europe-west1.gcp.cloud.es.io:9243/31960/bundles/plugin/data/data.plugin.js:6:32706)
at BucketAggType.makeLabel (https://763f010f35f1460f800915485da4ea92.europe-west1.gcp.cloud.es.io:9243/31960/bundles/plugin/data/data.plugin.js:6:310221)
at AggConfig.makeLabel (https://763f010f35f1460f800915485da4ea92.europe-west1.gcp.cloud.es.io:9243/31960/bundles/plugin/data/data.plugin.js:6:29651)
at getColumn (https://763f010f35f1460f800915485da4ea92.europe-west1.gcp.cloud.es.io:9243/31960/bundles/plugin/data/data.plugin.js:6:338960)
at https://763f010f35f1460f800915485da4ea92.europe-west1.gcp.cloud.es.io:9243/31960/bundles/plugin/data/data.plugin.js:6:339080
at Array.map ()
at tabifyGetColumns (https://763f010f35f1460f800915485da4ea92.europe-west1.gcp.cloud.es.io:9243/31960/bundles/plugin/data/data.plugin.js:6:339052)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Feature:Data TableData table visualization featureTeam:VisualizationsVisualization editors, elastic-charts and infrastructure

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions