apache / druid

Apache Druid: a high performance real-time analytics database.

Home Page:https://druid.apache.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Native queries return errors given fractional period granularities.

oskar11120 opened this issue · comments

Affected Version

28.0.1

Description

Example query targeting wikedia edits example data ingested using web console:

{
  "queryType": "timeseries",
  "aggregations": [
    {
      "type": "longSum",
      "name": "Sum",
      "fieldName": "added"
    }
  ],
  "intervals": [
    "2016-06-17T00:00:00.0000000+00:00/2016-07-07T00:00:00.0000000+00:00"
  ],
  "granularity": {
    "type": "period",
    "period": "P0.5Y",
    "timeZone": "Europe/Warsaw"
  },
  "dataSource": "wikipedia"
}

Error:
image

The docs suggest fractional periods are supported:
(https://druid.apache.org/docs/latest/querying/granularities/#period-granularities)
image