-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
feat: add csv influx v1 #25030
feat: add csv influx v1 #25030
Conversation
Hey @JeanArhancet - thanks for opening the PR! If it is still WIP, then I suggest converting it to Draft. Then, once you're happy with it, you can flip it back to open and request review from myself or one of the other maintainers. Also, CI runs
Looks like you need to check |
The v1 API of InfluxDB only supports JSON and JSON Pretty. For other formats, we've added the I'd prefer not to add anything new to the v1 API. It's there for backward compatibility to help people upgrading. But for new functionality, users will have to move to the v3 APIs. |
Actually, @hiltontj just let me know that we already support Thanks for pitching in @JeanArhancet. We're still very early and haven't been taking outside contributions so we haven't ironed out that process yet. We'll update our CONTRIBUTING with a little explanation. The high level is that people should always start with an open issue if they want to contribute. If no issue exists for what they want to add, opening an issue is the best starting point so that we can comment there before implementation. |
Ah, @hiltontj just now reminded me that v1 does in fact support CSV. I had forgotten and when I took a look at the docs before closing out this PR, I couldn't find mention of it. However, it's here: https://docs.influxdata.com/influxdb/v1/tools/api/#request-query-results-in-csv-format. And the issue we had open was here: #24770. So I'll re-open, assuming you're trying to support that format. If not, and you're just looking for InfluxQL and csv results, v3 is probably what you want. |
24da08b
to
0e57fd8
Compare
cf52cc0
to
df1be6f
Compare
df1be6f
to
df70e21
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a few comments in line for you to take a look at before approving.
66806a8
to
4dea77c
Compare
Sorry for the delay, @hiltontj . I have applied your feedback and also fixed the code and added integration tests for this part. What do you think? |
4dea77c
to
ba00dfc
Compare
@JeanArhancet I will try to get some time today or tomorrow to take a look at this, but in the meantime, CI has a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JeanArhancet - it's looking great! I left one minor nit in a comment but otherwise LGTM, thanks for sticking with it.
Merged! Thank you @JeanArhancet, again, for your PR 🙏 |
This PR is Part of #24770
Goal: Extend current v1 implementation to support CSV format.
QueryFormat
enum to handle CSV, JSON, and pretty JSON formats.QueryResponse
toBytes
to include CSV support.Check-list: