InfluxDB 2.x: Error: Unsupported input type for mean aggregate (string to integer): Unterschied zwischen den Versionen
Aus Wiki-WebPerfect
Admin (Diskussion | Beiträge) |
Admin (Diskussion | Beiträge) |
||
Zeile 13: | Zeile 13: | ||
Unfortunately InfluxDB 2.x has no solution for this (or I don't know about them). <br> | Unfortunately InfluxDB 2.x has no solution for this (or I don't know about them). <br> | ||
That's why we have to convert the type of the "_value" fields and rewrite this in a new measurement. <br> | That's why we have to convert the type of the "_value" fields and rewrite this in a new measurement. <br> | ||
− | *Optionally: Create a new bucket (I called them "typeconversion") | + | *Optionally: '''Create a new bucket''' (I called them "typeconversion") |
*Write a query that '''selects your measurement''', '''convert the values''' to integer and '''rewrite the data''' to your new bucket. | *Write a query that '''selects your measurement''', '''convert the values''' to integer and '''rewrite the data''' to your new bucket. | ||
+ | *To prevent browser timeouts, create a InfluxDB Task. Here my example: | ||
+ | <pre> | ||
− | + | </pre> | |
+ | *Remove the old measurement | ||
+ | * | ||
Version vom 1. März 2021, 14:16 Uhr
My InfluxDB 2.x downsampling tasks could not run because of following error.
Error
Could not execute task run; Err: unsupported input type for mean aggregate: string: unsupported input type for mean aggregate: string
Unsupported input type for mean aggregate: string
Cause
This error occurs because of type conflicts in the same fields respectively in the value of it.
Solution / Workaround
Unfortunately InfluxDB 2.x has no solution for this (or I don't know about them).
That's why we have to convert the type of the "_value" fields and rewrite this in a new measurement.
- Optionally: Create a new bucket (I called them "typeconversion")
- Write a query that selects your measurement, convert the values to integer and rewrite the data to your new bucket.
- To prevent browser timeouts, create a InfluxDB Task. Here my example:
- Remove the old measurement