-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[feature request] allow for mixed units when specifying retention policy durations #3634
Comments
The fairly easy workaround is to provide the retention policy duration in a single unit rather than mixed units. |
It is easy to workaround, but we should be able to give the same 'value' given by the "show" command when creating a retention policy :
gives :
But we can't create a policy with "168h45m0s" as value for duration .... Olivier |
@olivierHa I do understand your point. I'm not disputing whether it's useful, I'm merely saying it's not a bug, just slightly annoying behavior with a trivial workaround. Please notice I left the issue open and changed it into a feature request to deliver the functionality you requested. |
Thanks. |
why me set my custom retetion policy default then i can not cross cli query series?So i set default to default and the series i can query too. |
@lmx1989219 your question is unclear, and I do not believe it relates in any way to specifying retention policy durations in mixed units. Please send a note to the mailing list influxdb@googlegroups.com if oyu have questions. |
@beckettsean |
It is now possible to use a mixed duration unit like `1h30m`. The duration units can be in whatever order as long as they are connected to each other. There is a change to the scanner. A token such as `10x` will be scanned as a duration literal, but will then fail to parse as an invalid duration. This should not be a breaking change as there is no situation where `10m10` was a valid order of tokens for the parser. Fixes #3634.
It is now possible to use a mixed duration unit like `1h30m`. The duration units can be in whatever order as long as they are connected to each other. There is a change to the scanner. A token such as `10x` will be scanned as a duration literal, but will then fail to parse as an invalid duration. This should not be a breaking change as there is no situation where `10m10` was a valid order of tokens for the parser. Fixes #3634.
It is now possible to use a mixed duration unit like `1h30m`. The duration units can be in whatever order as long as they are connected to each other. There is a change to the scanner. A token such as `10x` will be scanned as a duration literal, but will then fail to parse as an invalid duration. This should not be a breaking change as there is no situation where `10m10` was a valid order of tokens for the parser. Fixes #3634.
It is now possible to use a mixed duration unit like `1h30m`. The duration units can be in whatever order as long as they are connected to each other. There is a change to the scanner. A token such as `10x` will be scanned as a duration literal, but will then fail to parse as an invalid duration. This should not be a breaking change as there is no situation where `10m10` was a valid order of tokens for the parser. Fixes #3634.
It is now possible to use a mixed duration unit like `1h30m`. The duration units can be in whatever order as long as they are connected to each other. There is a change to the scanner. A token such as `10x` will be scanned as a duration literal, but will then fail to parse as an invalid duration. This should not be a breaking change as there is no situation where `10m10` was a valid order of tokens for the parser. Fixes #3634.
@jsternberg this is fantastic! I assume that the change is universal within InfluxQL, and not just for retention policy durations? |
It should be universal. |
Hello,
On Influxdb version 0.9.2, when creating a policy retention like :
It creates :
So 1w has been converted to 168h0m0s. Ok this seems legit :)
But we can't create policy retention with this value :(
"168h" works, but we should be able to give the same exact "duration" as shown in "show retention policy"
A side effect (I guess) is that you can't give '24h30m' as a duration
Regards
Olivier
The text was updated successfully, but these errors were encountered: