Can't get all tags

I am using the following flux query to get all tags for a measurement:

import "influxdata/influxdb/schema"
schema.measurementTagKeys(bucket: "Test", measurement: "orders")

However, I don’t see the tags output. I expected to see currency and host but I instead see _start and _stop

As you can see below, currency and host are there.

Hello @Carl_Markham,
Welcome. I’m not sure what’s going on there. It works for me.

Can you try creating a new bucket “test” and then running the following?

import "experimental/array"

array.from(rows: [
  {_time: 2020-01-01T00:00:00Z, _field: "exampleField", _value: 3, foo1: "bar", _measurement: "test_meas"},
  {_time: 2020-01-01T00:01:00Z, _field: "exampleField", _value: 4, foo2: "bar", _measurement: "test_meas"},
  {_time: 2020-01-01T00:02:00Z, _field: "exampleField", _value: 1, foo3: "bar", _measurement: "test_meas"}
])
|> to(bucket: "test")

Verify that you’ve written 3 points, and then running the schema.measurementTagKeys function again?
Thank you!