Closed sgloutnikov closed 5 years ago
Hi Stephan - I believe this is actually one of the cases we don't support. @blagojts correct me if I'm wrong? Also, perhaps we should document the known limitations here + workarounds if they exist. cc @bboule
Yes, this is one of the cases we have trouble with. But I like the suggestion to 'promote' the field during migration. We'll discuss with the team and let you know our progress.
Thank you.
Will update the documentation for now that this is a limitation.
We merged a fix for this.
If you want to enable integer to float 'promotion' you need to explicitly specify the multishard-int-float-cast
flag. This way if a field is discovered with both an integer
and float
type, it will promote it. But for any other types it will return an error. The explicit flag is required because integers in InfluxDB are int64, and floats are float64, and not all values of a int64 are supported by a float64
I just ran into an edge case, where InfluxDB has different data types for the same field name within different shards. This is causing a problem with outflux and the migration for the measurement fails.
More on why and how InfluxDB does this can be found here.
This is happening because the
signal
field type is afloat
and aninteger
. InfluxDB:I'm not sure what the best way to handle this could be. Some ideas that come to mind:
select signal::float from M1
.