elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.69k stars 8.24k forks source link

Minus zero (-0.0) values being rendered as 0.0 #195947

Open ivancea opened 1 month ago

ivancea commented 1 month ago

-0.0 values shown by Kibana are shown as 0.0 instead, which gives false information.

Can be reproduced with:

PUT test

POST test/_mapping
{
  "properties": {
    "double": {
      "type": "double"
    }
  }
}

POST /test/_doc
{
    "double": -0.0
}

POST /test/_doc
{
    "double": -0.0
}

# Agg
GET /test/_search
{
  "size": 0,
  "aggs": {
    "terms": {
      "terms": {
        "field": "double"
      }
    }
  }
}

# Search
GET /test/_search
{
  "query": {
    "term": {
      "double": {
        "value": -0.0
      }
    }
  }
}

Image

ES explicitly documents -0.0 values as possible values, so Kibana should probably show them too

elasticmachine commented 1 month ago

Pinging @elastic/kibana-visualizations (Team:Visualizations)