Closed akhilman closed 1 month ago
It's expected.
The precison
only controls how to parse the timestamp values in protocol payloads, it doesn't determine the schema of the measurement tables.
GreptimeDB always uses TimestampNanosecond
as the data type for timestamp data from the InfluxDB line protocol API and it will create the table automatically, so you don't need to create the table at first. In fact, all the ingestion protocols except SQL INSERT
will create tables or add columns automatically for users.
Please read the data model https://docs.greptime.com/nightly/user-guide/ingest-data/for-iot/influxdb-line-protocol#data-model
Got it.
What type of bug is this?
Unexpected error
What subsystems are affected?
Standalone mode
Minimal reproduce step
I'm trying to run the following example from https://docs.greptime.com/user-guide/ingest-data/for-iot/influxdb-line-protocol :
What did you expect to see?
Three data points should be added to table.
What did you see instead?
I have an error:
What operating system did you use?
ArchLinux x64
What version of GreptimeDB did you use?
0.9.3 from docker.io
Relevant log output and stack trace