-
Notifications
You must be signed in to change notification settings - Fork 495
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
Fixes for InfluxDB queries #1122
Conversation
pdf
commented
Jul 1, 2015
- Fix a typo to allow building
- Add support for backtick-quoted strings, because double-quotes are really a necessity for InfluxDB queries
Refs #618 |
Hrm, any idea how to fix travis to install deps on this branch? |
the influx files need to be vendored to the _third_party directory with github.com/mjibson/party |
The current tests appear to require a real connection to a DB and some arbitrary data, so that's not going to fly. Other sources don't include any tests, are we better to just delete the integration tests? |
Backticks won't work because the conf file already uses backticks. However I added single quotes, so you can use those:
Could you un-party the code for now (remove the new _third_party stuff and point the imports back to their normal place)? We'll do that in another PR so we can actually see this and post comments on github. It's currently too big to render it all. Don't worry about the travis stuff. The tests were just there so I could type |
I don't follow, do backticks have some special conflicting use in the configs?
Single quotes don't work from the expression UI for me - I get EDIT: I've rolled back the party commit. |
So apparently (influxdata/influxdb#1757) identifiers need to be double-quoted, and string-literals need to be single-quoted, so it looks like we'd need escaping if backticks are out of the question. |
It also looks like we can't currently do |
Yes. Multi-line strings are created using backticks, and there's no escaping, so you can't have a backtick in a backtick-delimited string.
Ugh. I didn't know that. I thought double quotes were all it used. This means Bosun will have to add in escape characters to either its conf or expr parsing. This needs a bit more discussion before a decision is made about where to do the escaping.
Hmm. I'll look into this more. No obvious solutions come to mind. |
@mjibson Any thoughts on the direction bosun should take with this? Looking to get InfluxDB support across the line. I have been starting here https://github.com/bosun-monitor/bosun/compare/influxdb-query |
I'm no longer involved in Bosun, but I assume it's where it was a few months ago. If someone is willing to update the existing influx PR and fix the issues listed here and will maintain it going forward, the team may merge it. |
@nathanielc I think it would be best just to go with triple quoted strings as another format of literal strings since we already use backticks. The parser will need to be updated for that though. |
@kylebrandt ok thanks, I'll take a crack at it. |
miss you already @mjibson ! hope you're having a good time with the new gig. |
@kylebrandt See #1289 This should address the issues that have been discussed. |
Closing this issue as InfluxDB support was added in #1291 |