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

Remove quoting from tag keys and values #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

randycoulman
Copy link
Contributor

NOTE: This PR is built on top of #22 in order to be able to run the tests. Please merge that PR first. Only the last commit is part of this PR.

We found that our tag keys and values had spurious double-quotes in them when trying to query the data from InfluxDB.

According to the line protocol documentation,

Line protocol accepts double and single quotes in measurement names, tag keys, tag values, and field keys, but interprets them as part of the name, key, or value.

Double-quotes are required for field values, so that behavior is preserved here.

Randy Coulman and others added 2 commits October 8, 2021 18:59
The official `latest` Docker image for InfluxDB is now a 2.x image. That image now supports initial provisioning via environment variables like the 1.x image does.

This makes the following changes:
- Explicitly use a v1.x image (latest is 1.8) for the v1 tests
- Use the DockerHub image for v2 tests
- Use the new image's built-in provisioning support to simplify the Makefile
- Use a hard-coded token to avoid having to inject it everywhere dynamically in the tests
- Revert back to using `/api/v2/delete` for cleaning up after tests. It is now supported again, and the v1 compatibility endpoint wasn't working the same way with the latest version.
- Remove the `.token` file from `.gitignore`; we no longer generate this file.
We found that our tag keys and values had spurious double-quotes in them when trying to query the data from InfluxDB.

According to the [line protocol documentation](https://docs.influxdata.com/influxdb/v2.0/reference/syntax/line-protocol/#quotes),

> Line protocol accepts double and single quotes in measurement names, tag keys, tag values, and field keys, but interprets them as part of the name, key, or value.

Double-quotes are required for field values, so that behavior is preserved here.

Co-authored-by: Randy Coulman <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants