Closed aivinog1 closed 4 months ago
Hi @aivinog1,
thanks for your suggestion.
Is this something you would be willing to help with? All PR is welcome and we will be happy to review your submission.
Regards
I think this is an inherent function. Without the FLUX DSL in Java and the possibility of prepare statements, any development with the Java API is quite complicated and time-consuming, as you should not simply pass the string queries to the DB (risk of injection).
Proposal: The Flux already has the
elapsed
function. But the Flux DSL is missing this function.Current behavior: There is no such function in the
com.influxdb.query.dsl.Flux
class.Desired behavior: I should be able to use the
elapsed
function, something like this:Alternatives considered: I can't see any alternatives.
Use case: I am using this while I am building queries: