taiyang-li commented on issue #7054:
URL: 
https://github.com/apache/incubator-gluten/issues/7054#issuecomment-2325476102

   sql: 
   ```
   select coalesce(day,"all") as daytime,
   coalesce(type,"all") as type,
   coalesce(value_money,"all") as value_vmoney ,
   sum(case when type in (1,2) and  action=8 then value_vmoney else 0 end)/60 
as total_value_vmoney
   from
   (select day,type,
   nvl(cast(value_vmoney as bigint),0) as value_money,
   action,
   type,
   cast(value_vmoney as bigint) as value_vmoney
   from
   (
   select day,event.event_info["type"] as type,
   event.event_info["action"] as action,
   event.event_info["value_vmoney"] as value_vmoney
   from bigolive.bigo_show_user_event_hour_orc a
   where day='2024-08-27' and event_id ='011441004'
   and event.event_info["type"] in (1,2,4)
   ) a
   ) b
   group by day,type,value_money
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to