Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Support the actual query granularity of the datasource #224

Closed
nevets1219 opened this issue Jun 10, 2016 · 5 comments
Closed

Support the actual query granularity of the datasource #224

nevets1219 opened this issue Jun 10, 2016 · 5 comments

Comments

@nevets1219
Copy link

In Pivot, we only have granularity of one minute, five minute, hourly, daily, and weekly which means we can't specify a granularity in Pivot that matches our query granularity. I tried using the next lower granularity but the timeseries shown is fairly spiky and doesn't really portray what's actually happening.

For one of our datasource, we have 10 minute query granularity with hourly segment granularity. The followings are table and timeseries from Pivot with five minute and hourly granularity:

5-minute-granularity
five_min_granularity
five_min_table

Hourly-granularity
hourly_granularity
hourly_table

Please let me know if you need any other information or feel that I may be doing something wrong.

@nevets1219 nevets1219 changed the title Support the actual query granularity specified for a datasource Support the actual query granularity of the datasource Jun 10, 2016
@vogievetsky
Copy link
Member

have you tried setting granularities ?https://github.com/implydata/pivot/blob/master/docs/configuration.md#dimensions

try: ['PT10M', 'PT30M', 'PT1H', 'P1D', 'P1W']

@nevets1219
Copy link
Author

nevets1219 commented Jun 11, 2016

I generated a config and added what you suggested to the config for my desired datasource:

      - name: __time
        title: Time
        kind: time
        granularities: ['PT10M', 'PT30M', 'PT1H', 'P1D', 'P1W']
        expression: $__time

Then I restarted Pivot, however I don't see the change reflected in the UI for my datasource, it's still using the 5 default granularities. Nothing strange in the logs indicating anything wrong, any thoughts?

@evasomething
Copy link
Contributor

Hi, what version of pivot are you running?

@nevets1219
Copy link
Author

nevets1219 commented Jun 12, 2016

@evasomething We are using 0.8.26

EDIT: It looks like it's a feature in 0.8.28 ?

@vogievetsky
Copy link
Member

Yep! @evasomething added that feature as part of 0.8.28 (https://github.com/implydata/pivot/blob/master/CHANGELOG.md#0828)

Going to close this issue as it is already fixed. Please file an issue if you experience any problem after you upgrade.

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

No branches or pull requests

3 participants