I have a problem with calculating STDEV in mysql (denodo)
Here's the code:
select STDEV(amount) OVER (PARTITION BY customer_id ORDER BY datetime ROWS BETWEEN UNBOUNDED PRECEDING AND 1 PRECEDING)
from my_table where
And this is the error I get.
[Code: 30100, SQL State: HY000] Function 'stdev' with arity 1 not found```
I've also tried to use SQRT(VAR(amount)) instead of stdev, but I've got
[Code: 30100, SQL State: HY000] Error computing capabilities of GROUP BY view` error.
How can I fix this?
If you're using PostgreSql driver this post might help you: https://community.denodo.com/answers/question/details?questionId=90670000000XcrdAAC&title=Function+%27current_setting%27+with+arity+1+not+found...