You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inserting data into an existing InfluxDB column requires the new data to be of the same type as the existing data within a shard.
This can be problematic if the data type is not enforced as it might change.
Example:
Inserting data from a backup CSV file where integers might be read as floats
Inserting data from HealthKit that can switch between float and integer, e.g., when zero.
Currently, the datatype is enforced in the lambda function cozie-apple-app-write.
This issue is also one of the reasons why we decided to have a new 'measurement' for each 'experiment ID'
To make things simpler and more consistent, we could consider forcing the datatype float for all numerical values.
That would help avoid some horrific surprises when inserting new data.
The text was updated successfully, but these errors were encountered:
Alternatively, the data type could be enforced automatically by modifying the payload format as shown below.
This way, no changes to the backend need to be made if and when new fields are implemented in the app.
Inserting data into an existing InfluxDB column requires the new data to be of the same type as the existing data within a shard.
This can be problematic if the data type is not enforced as it might change.
Example:
Currently, the datatype is enforced in the lambda function cozie-apple-app-write.
This issue is also one of the reasons why we decided to have a new 'measurement' for each 'experiment ID'
To make things simpler and more consistent, we could consider forcing the datatype float for all numerical values.
That would help avoid some horrific surprises when inserting new data.
The text was updated successfully, but these errors were encountered: