Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Aggregating date field returns negative long value #521

Closed
dai-chen opened this issue Jun 16, 2020 · 0 comments
Closed

Aggregating date field returns negative long value #521

dai-chen opened this issue Jun 16, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@dai-chen
Copy link
Member

Query with GROUP BY date field returns long value in which some are negative.

POST _opendistro/_sql
{
  "query": """
    SELECT
      timestamp, COUNT(*) FROM kibana_sample_data_flights GROUP BY timestamp LIMIT 5
  """
}

{
  "schema": [
    {
      "name": "timestamp",
      "type": "double"
    },
    {
      "name": "COUNT(*)",
      "type": "double"
    }
  ],
  "total": 5,
  "datarows": [
    [
      -1138807816,
      5
    ],
    [
      -1597045816,
      4
    ],
    [
      -1221134816,
      4
    ],
    [
      543486184,
      4
    ],
    [
      -1732792816,
      3
    ]
  ],
  "size": 5,
  "status": 200
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants