simpleSqlParser
simpleSqlParser copied to clipboard
Using simpleSqlParser for the following SELECT statement
Hi, I am currently trying to use the following statement for a influx DB query which fails because of different aspects
SELECT derivate(mean(value)) AS value FROM "this.is.a.crazy.table" WHERE time() > now - 10m AND host = "blabla" AND ip = "192.168.1.1" GROUP BY time(10s) LIMIT 5
- It seems that V2 of the parser does not like quoted table names
"this.is.a.crazy.table"
- Where does not like the function
time() > now - 10m
- The Group statement is also not parsed correctly with
time(10s)
Are those things which maybe changed easily?
Hi,
I tried to fix these issues here: https://github.com/dsferruzza/simpleSqlParser/tree/fix-influxdb (diff) Can you have a look at this branch and tell me if this looks good to you?