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

How can i get data by using "escape string tag" #5514

Open
CHN-STUDENT opened this issue Nov 29, 2024 · 1 comment
Open

How can i get data by using "escape string tag" #5514

CHN-STUDENT opened this issue Nov 29, 2024 · 1 comment

Comments

@CHN-STUDENT
Copy link

from(bucket: "hg-nhdb")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "alarm_points")
  |> filter(fn: (r) => r["_field"] == "real_value")
  |> filter(fn: (r) => r["tagname"] == "\\HG\\XXXX\\FM_FIQ_E100A1_DACA_PV")
  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
  |> yield(name: "mean")

my tagname is \HG\XXXX\FM_FIQ_E100A1_DACA_PV, but i get error

 compilation failed: error @25:87-25:114: expected comma in property list, got DOT error @25:105-25:113: unexpected token for property key: DOT (.) error @27:39-27:66: expected comma in property list, got DOT error @27:57-27:65: unexpected token for property key: DOT (.) error @27:95-27:122: expected comma in property list, got DOT error @27:113-27:121: unexpected token for property key: DOT (.) error @28:36-28:63: expected comma in property list, got DOT error @28:36-28:42: invalid expression @28:35-28:36: : error @28:54-28:62: unexpected token for property key: DOT (.) error @28:100-28:127: expected comma in property list, got DOT error @28:118-28:126: unexpected token for property key: DOT (.)

also use \ or \\ or \\\\, but still can not work,could someone help me?

Copy link

This issue has had no recent activity and will be closed soon.

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

No branches or pull requests

1 participant