Does CDF support the direct ingestion of timeseries with non-numeric values ( enums). If the workaround is to convert enums to integers to ingest, this is unnecessary overhead and a limitation. Also have to remember to convert the values back for visualization.
Does CDF support timeseries ingestion with non numeric values
Best answer by Johannes Hovda
Hi,
CDF supports direct ingestion of non-numerical timeseries data. You can provide datapoints in either numerical and string form.
https://developer.cognite.com/dev/concepts/resource_types/timeseries/
So yes, you don't need to convert enums or strings to numbers - you can ingest them as strings.
However, we have many helper functions if you want to map the enum values to numbers. This is often used if you want to normalize or standardize enum values across multiple machine types and equipment suppliers.
https://developer.cognite.com/dev/concepts/resource_types/synthetic_timeseries/#convert-string-time-series-to-doubles
Hope this helps
kind regards
Johannes
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.