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

Function shift() does not match InfluxDB 2 spec #235

Closed
hinst opened this issue Jun 21, 2021 · 2 comments · Fixed by #236
Closed

Function shift() does not match InfluxDB 2 spec #235

hinst opened this issue Jun 21, 2021 · 2 comments · Fixed by #236
Labels
bug Something isn't working
Milestone

Comments

@hinst
Copy link

hinst commented Jun 21, 2021

Steps to reproduce:
Build a query using class Flux, function shift

Expected behavior:

Function timeShift will be outputted, matching InfluxDB 2 spec: https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/timeshift/

Actual behavior:
Function shift will be outputted:

|> shift(shift:0s)

However, it does not match the spec. InfluxDB says: undefined identifier shift

Specifications:

  • Client Version: 2.3.0
  • InfluxDB Version: 2
  • JDK Version: 11
  • Platform: Client=Windows, Server=Ubuntu
@bednar
Copy link
Contributor

bednar commented Jun 22, 2021

Hi @hinst,

thanks for using our client.

I've prepare the PR - #236 to fix this issue. Stay tuned.

Regards

@bednar bednar added the bug Something isn't working label Jun 22, 2021
@bednar bednar added this to the 2.4.0 milestone Jun 23, 2021
@bednar
Copy link
Contributor

bednar commented Jun 23, 2021

Hi @hinst,

the issue is fixed in 2.4.0 milestone. You could use a preview version by:

<dependency>
  <groupId>com.influxdb</groupId>
  <artifactId>influxdb-client-flux</artifactId>
  <version>2.4.0-SNAPSHOT</version>
</dependency>

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants