During testing of our InfluxDB database, we encountered unexpected behavior from Grafana when handling arrays containing NaN values using the “Extract Fields” transformation. It appears that Grafana does not properly handle arrays when NaN values are present, leading to the removal of valid data.
Problem Details:
- NaN Case: When an array contains NaN values, the entire array is discarded, resulting in a loss of valid data.
Impact: This issue leads to the removal of valid data present in arrays as soon as a NaN value is encountered, creating inconsistencies in displayed data and making accurate analysis difficult.
Specific Requirement: Using the “Extract Fields” transformation, we need to split the values present in the array to place each value in a specific column. The goal is to obtain a table with the following columns:
• Time
• Value1 of the array
• Value2 of the array
• Value3 of the array
Currently, when NaN values are present, we are unable to achieve this desired result.
Request: It would be helpful to have a more robust handling of arrays containing NaN values, possibly ignoring NaNs and preserving the valid data present in arrays. Any advice on how to work around this issue or any future updates to improve this functionality would be greatly appreciated.
Thank you for your support.