influxdb icon indicating copy to clipboard operation
influxdb copied to clipboard

Incorrect Error Message when adding explicit Measurement schema in the web GUI

Open modellking opened this issue 3 years ago • 0 comments

  1. Open the Bucket management page https://europe-west1-1.gcp.cloud2.influxdata.com/orgs/d804f8be49384142/load-data/buckets
  2. Create Bucket -> Advanced Configuration -> Explicit -> Add measurement schema (enter names where necessary)
  3. try to add any of the below csv files (they use the from-my-mind-reasonably-conceivable(TM) variations of "name, type, dataType" to describe a simple schema) data_type dataType dataType + spaces
  4. -> Error message 'csv headers are not correct; they need to be : "name, type, dataType"'

This error does not seem to be correct. Either the issue with the files is a different one, or a non-standard way to define headers in a csv file is used

Speaking of inconsistencies: This documentation uses data_type as used in one of the sample csv files which is different from the Error message. This might therefore be wrong.

A working file that gives the expected results (using json format found here) is

[
  { "name":  "time", "type":  "timestamp"},
  { "name":  "device", "type":  "tag"},
  { "name":  "class", "type":  "field", "dataType":  "string"},
  { "name":  "value", "type":  "field", "dataType":  "string"}
]

modellking avatar Aug 19 '22 16:08 modellking