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

支持 flux-dsl语句吗 #46

Closed
lcwSeven opened this issue Jul 1, 2022 · 6 comments
Closed

支持 flux-dsl语句吗 #46

lcwSeven opened this issue Jul 1, 2022 · 6 comments

Comments

@lcwSeven
Copy link

lcwSeven commented Jul 1, 2022

大佬是否支持使用influxDB的flux-dsl语句查询

@chengshiwen
Copy link
Owner

目前适配 influxdb 2.x 的分支influxdb-v2 支持 flux 查询语法,主分支master 适配 influxdb 1.x,目前不支持,如果需要,我可以适配 flux

@lcwSeven
Copy link
Author

lcwSeven commented Jul 4, 2022

使用influxdb-v2时 使用的是官方提供的flux-dsl Java Api
Flux.from("test") .range(-1L,ChronoUnit.DAYS) .filter(Restrictions.measurement().equal("measure"));
解析出的语句为:
from(bucket:"test") |> range(start:-1d) |> filter(fn: (r) => r["_measurement"] == "measure")

测试发现 r["_measurement"] 在influx-proxy中不能解析,要写成 r._measurement
希望大佬能够适配下官方的flux-dsl Api:https://github.com/influxdata/influxdb-client-java/tree/master/flux-dsl

@chengshiwen
Copy link
Owner

chengshiwen commented Jul 4, 2022

没注意到这种情况,我今晚修复下

@chengshiwen
Copy link
Owner

@lcwSeven
v2.5.10 已经正式发布:https://github.com/chengshiwen/influx-proxy/releases/tag/v2.5.10
docker 镜像:https://hub.docker.com/r/chengshiwen/influx-proxy
docker 命令:docker pull chengshiwen/influx-proxy:2.5.10
helm chart:https://github.com/influxtsdb/helm-charts/tree/master/charts/influx-proxy

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

No branches or pull requests

2 participants