-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 collection]] requested Functions and query operators #5930
Comments
Is there any timeline for these functions? (I'm very interested in the aggregate integral functions, to calculate kWh from watts). Seems that a feature request was opened a year ago. |
There is no timeline for each specific function/feature. All work on new functions was on hold while the query engine was refactored, and that refactoring was merged into InfluxDB 0.11. We plan to introduce a few functions with each release from now on. |
Would also be great to get #3633 Added to your list this feature would be very useful on the client side when graphing data. |
+1 for histogram() |
+1 for CAST function. Seriously, why isn't this a thing? |
Is user defined function feature available in influx db? It will of great help if somebody could help me with sample in influxdb, which are similar to stored procedures. Any suggestions? Thanks in advance. |
@AnnapoorniS I'd suggest looking at Flux https://github.com/influxdata/platform/tree/master/query |
Assuming that because #834 is checked it is seen as completed. These functions does still not work (v.1.5.1) and would very be useful for me: Thanks |
aggregation with respect to weekday and weeknumber based on the timestamp |
Does #3552 fit in here? |
+1 for histogram #3674 |
+1 |
👍 +1 for timeshift functions - Seems like this has been requested multiple times by a number of users |
The checklist implies that both "percentile + derivative" (#5150) and "Top accepts nested functions" (#2467, #5345) are addressed. However, the documentation says that neither percentile nor top supports nested functions (as of 1.7). So... is the checklist wrong? Can you do these without nested function support? Is the doc wrong? |
Hey @sfitts! (from the Forte days?!?) ... I believe you can do these now with subqueries. So, while it's not a direct nesting, it can be done that way. The primary focus going forward in terms of extending the query surface area is going to be done via Flux. https://docs.influxdata.com/flux/v0.7/ InfluxQL will, of course, continue to be supported. But there are challenges that we are going to address at the query engine layer and then open up the ability to address so many of these requests via Flux. Have a look, let us know! |
@timhallinflux just after I wrote this it dawned on me that subqueries were probably the answer -- thanks for the confirmation. Also hadn't picked up on the fact that a query language replacement was in the works, so I'll definitely check that out. (and yep -- I date back to Forte 👍) |
Good to reconnect! I want to be super clear.... we are not going to "replace" InfluxQL. As we continue forward, InfluxQL will continue to be the primary on-ramp and supported. But, in terms of working with time series data -- we determined that a functional language can be a powerful way to manipulate the functions, results, and simplify developer code (in the end). So many of these requests were part of our design center for Flux itself and ensuring that we can deliver on them. We have been listening, observing, and attempting to address many of these for multiple years now. We started and failed at least twice...a couple of attempts that never saw the light of day and weren't "ship worthy". With Flux, we are on the brink of breaking through and delivering on this list (and more!) while continuing to support InfluxQL. i.e. Histogram...already in. So, we maintain the easy on-ramp via InfluxQ. If that is all you need...great! But, if you need more power...and there are a number of time series use cases which certainly do -- particularly given this list, Flux will be there. In 1.7 InfluxDB, there are two query engines that run in parallel. In 2.0, the Flux engine will be the primary engine and InfluxQL will run in a compatibility mode on top of that engine. Hope that helps clarify! |
Makes sense (and thanks for the clarification). |
3 years and Boolean cast to Integer (1/0) is not yet implemented... |
Thank you for the hard work. I just came here to express that more functions would definitely be very useful. So, +1 for log mean please ! |
Boolean type cast would be really useful in my work place. |
+1 for Histogram |
I'd like to have CAST from string to boolean to integer |
+1 to CAST from boolean to integer |
Casting boolean -> int has been implemented in Flux. This is available as a technical preview in 1.7 and we are just about to release 1.8 which includes some additional, significant updates. https://docs.influxdata.com/flux/v0.50/introduction/flux-vs-influxql/ |
Has anybody worked in that and worked out at least an influx aggregation function for that? I would love to have this otherwise I will build it myself or will have to go to a less accurate algorithm |
To add something usefull here regarding filtering of peaks, I implemented a simpler algorithm for aggregation by comparing values to the average of a time window, maybe that helps someone else as well: ` fields = ["test", "test2"] data = from(bucket: "MyBucket") mean = data diff = join.full(left: data, right: mean, You can change the aggregation window (in the example 1m), the range and the filtered fields. |
This issue contains a list of related feature requests that are not on the near-term roadmap. The feature requests in this issue are all new functions that have been requested. If you want to request a function not already listed please make a comment on this issue, and we will add it to the checklist.
Aggregations
Selectors
Transformations
Operators
InfluxQL enhancements
fill(previous)
without GROUP BY [feature request] keep last value or fill(previous) without a group by #3633The text was updated successfully, but these errors were encountered: