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

Native queries return errors given fractional period granularities. #16089

Open
oskar11120 opened this issue Mar 9, 2024 · 0 comments
Open

Comments

@oskar11120
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant