[Data table vis] Choosing the Date Histogram aggregation causes the app to error out if index does not have a time field #68977
Labels
Feature:Data Table
Data table visualization feature
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
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:
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):
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)
The text was updated successfully, but these errors were encountered: