Closed eemhu closed 2 months ago
Describe the bug
%dpl index=join_json_one earliest="01/01/2021:00:00:00" | spath | eval monthYear=strftime(_time,"%Y-%m") | eval attack = if((operation="attack"),1,0) | eval defend = if((operation="defend"),1,0) | eval spy = if((operation="spy"),1,0) | stats sum(attack) AS attack, sum(defend) AS defend, sum(spy) AS spy by monthYear, user
returns mismatch data type error
Expected behavior
Should sum all of the MV field values together and then all rows together. e.g. [1, 2, 3] [1, 2, 3] -> 12
How to reproduce
Run command
Screenshots
Software version
5.3.0
Desktop (please complete the following information if relevant):
Additional context
Check other aggregate functions as well for the same issue!
If eval method returns MV fields to support them since Spark UDF only allow one return type
merged
Describe the bug
returns mismatch data type error
Expected behavior
Should sum all of the MV field values together and then all rows together. e.g. [1, 2, 3] [1, 2, 3] -> 12
How to reproduce
Run command
Screenshots
Software version
5.3.0
Desktop (please complete the following information if relevant):
Additional context
Check other aggregate functions as well for the same issue!
If eval method returns MV fields to support them since Spark UDF only allow one return type