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

tag schema is not created into the series #43

Open
patrickcat opened this issue Feb 8, 2018 · 2 comments
Open

tag schema is not created into the series #43

patrickcat opened this issue Feb 8, 2018 · 2 comments

Comments

@patrickcat
Copy link

Hi,

This is a great tool. But I encountered with a problem, after csv data imported into the series, I noticed that 'show tag keys' will return empty thereafter.

I tried one more time using influxdb-nodejs directly, also no tag created at all.

@rozetko
Copy link
Member

rozetko commented Feb 8, 2018

Hi, @patrickcat! Can you, please, show your .conf.json file?

I guess you use fieldSchema instead of tagSchema. Here is part of example config:

...
    "tagSchema": {
      "location": {
        "from": "location",
        "type": "*" // type of tag can be "*" (any value) or array of possible values
                    // see https://vicanso.github.io/influxdb-nodejs/Client.html#schema
      }
    }
...

I've just run this example and I have proper show tag keys output:

> show tag keys
name: air_quality
-----------------
tagKey
PT08.S2(NMHC)

@maxfrigge
Copy link

maxfrigge commented Jan 7, 2019

Had the same issue, which was caused by using "type": "string". Using "type": "*" as suggested by @rozetko fixed it.

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

3 participants