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

[TSVB] Inability to use value_count aggregation on non-numeric fields #67581

Closed
lucabelluccini opened this issue May 28, 2020 · 2 comments · Fixed by #79267
Closed

[TSVB] Inability to use value_count aggregation on non-numeric fields #67581

lucabelluccini opened this issue May 28, 2020 · 2 comments · Fixed by #79267
Assignees
Labels
enhancement New value added to drive a business result Feature:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@lucabelluccini
Copy link
Contributor

Kibana version: 7.6.2, 7.7.0 (probably more versions affected)

Elasticsearch version: 7.6.2, 7.7.0

Describe the bug:

When using TSVB and we want to use the value_count, the UI allows to select only numerical fields, while I would expect to work on keyword fields.

Steps to reproduce:

  1. Create some dummy documents
PUT discuss/_doc/1
{
  "timestamp" : "2020-01-19T03:26:21.326Z",
  "fruits": "banana",
  "test": 1
}
PUT discuss/_doc/2
{
  "timestamp" : "2020-01-19T03:26:21.326Z",
  "fruits": "banana",
  "test": 1
}
PUT discuss/_doc/3
{
  "timestamp" : "2020-01-19T03:26:21.326Z",
  "fruits": "apple",
  "test": 1
}
PUT discuss/_doc/4
{
  "timestamp" : "2020-01-19T03:26:21.326Z",
  "fruits": ["apple", "banana", "orange"],
  "test": 1
}
  1. Create the index pattern, select timestamp as time field

  2. Create a TSVB (Metric) with:

  • Panel options (Entire time range, discuss index pattern, drop last bucket false, timestamp time field)
  • Data (Value count, Group by everything)
  1. You will notice it is not possible to select fruits, but only test.

Expected behavior:

I would like to be able to use fruits field.

Screenshots (if relevant):

image

image

Related:

@lucabelluccini
Copy link
Contributor Author

Maybe we're missing value_count in

@timroes timroes added enhancement New value added to drive a business result Feature:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Visualization editors, elastic-charts and infrastructure labels May 28, 2020
@elasticmachine
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants