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

Error when creating a Top Hit aggregation #68883

Closed
lizozom opened this issue Jun 11, 2020 · 2 comments · Fixed by #71168
Closed

Error when creating a Top Hit aggregation #68883

lizozom opened this issue Jun 11, 2020 · 2 comments · Fixed by #71168
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...) impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. loe:small Small Level of Effort regression Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.9.0 v8.0.0

Comments

@lizozom
Copy link
Contributor

lizozom commented Jun 11, 2020

Kibana version:
master, doesn't happen in 7.8

Describe the bug:
Trying to create a Top Hit aggregation fails

Steps to reproduce:

  1. Load the a data set
  2. Create a new table visualization
  3. Choose a Top Hit metric aggregation
  4. Choose a keyword field

An error is shown:

{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "[illegal_argument_exception] Field [category.keyword] of type [keyword] does not support custom formats",
  "attributes": {
    "error": {
      "root_cause": [
        {
          "type": "illegal_argument_exception",
          "reason": "Field [category.keyword] of type [keyword] does not support custom formats"
        }
      ],
      "type": "search_phase_execution_exception",
      "reason": "all shards failed",
      "phase": "query",
      "grouped": true,
      "failed_shards": [
        {
          "shard": 0,
          "index": "kibana_sample_data_ecommerce",
          "node": "YjD2azE0SrOEA6beW3T-2w",
          "reason": {
            "type": "illegal_argument_exception",
            "reason": "Field [category.keyword] of type [keyword] does not support custom formats"
          }
        }
      ],
      "caused_by": {
        "type": "illegal_argument_exception",
        "reason": "Field [category.keyword] of type [keyword] does not support custom formats",
        "caused_by": {
          "type": "illegal_argument_exception",
          "reason": "Field [category.keyword] of type [keyword] does not support custom formats"
        }
      }
    }
  }
}

Expected behavior:
Either

  • Invalid fields shouldn't be available for the user to choose or
  • Aggregation should work

Screenshots (if relevant):

image (2)

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:

@lizozom lizozom added bug Fixes for quality problems that affect the customer experience Team:AppArch Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.9.0 v8.0.0 labels Jun 11, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@lukeelmers
Copy link
Member

I think this issue will be resolved by #47727

@lukeelmers lukeelmers self-assigned this Jun 11, 2020
@ppisljar ppisljar added Feature:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...) impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. triaged labels Jul 6, 2020
@lukeelmers lukeelmers added the loe:small Small Level of Effort label Jul 8, 2020
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:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...) impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. loe:small Small Level of Effort regression Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.9.0 v8.0.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants