Use EgdeX array data types in aggregate functions #3526
Unanswered
younes199511
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone!
I'm currently working with eKuiper and trying to understand how to utilize EdgeX array data types within aggregate functions.
I collect data periodically from EdgeX, where each data point is represented as an array. The goal is to merge all these arrays collected during that window period and then apply an aggregate function to the merged data.
However, when I attempt to use the current implementation, I encounter an error. For instance, I'm getting the following error when trying to apply the stddev function:
[{\"error\":\"call func stddev error: requires float64 slice but found []interface {}([[0 100] [0 100] [0 100] [0 100] [0 100] [0 100]])\"}]
Are there any specific syntax or function requirements for using array data types in aggregates? if no, is there any workaround to aggregate array data?
Any insights or documentation references would be greatly appreciated! Thank you!
Beta Was this translation helpful? Give feedback.
All reactions