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

Handling special characters #16

Open
nefh opened this issue Nov 13, 2023 · 0 comments
Open

Handling special characters #16

nefh opened this issue Nov 13, 2023 · 0 comments

Comments

@nefh
Copy link

nefh commented Nov 13, 2023

Hello,
I want to export measurement "Cos φ". Unfortunately, I always get java error, no matter how I pass special character in argument(directly, qoutation marks, backslash, unicode etc.). Is there a way to export data using queries with special characters?

java -cp /home/user/influxdb-fetcher-1.0.3.jar com.github.hgomez.influxdb.InfluxDBFetcher http://[ip]:8086 [user] [pass] [db] "SELECT * from Cos φ GROUP BY *" > cos.dump

Exception in thread "main" org.influxdb.InfluxDBException: error parsing query: found φ, expected ; at line 1, char 19 at org.influxdb.InfluxDBException.buildExceptionFromErrorMessage(InfluxDBException.java:161) at org.influxdb.InfluxDBException.buildExceptionForErrorState(InfluxDBException.java:189) at org.influxdb.impl.InfluxDBImpl.execute(InfluxDBImpl.java:835) at org.influxdb.impl.InfluxDBImpl.executeQuery(InfluxDBImpl.java:824) at org.influxdb.impl.InfluxDBImpl.query(InfluxDBImpl.java:559) at com.github.hgomez.influxdb.InfluxDBFetcher.main(InfluxDBFetcher.java:68)

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

No branches or pull requests

1 participant