Re: spark sql occer error

2019-03-22 Thread Wenchen Fan
Did you include the whole error message? On Fri, Mar 22, 2019 at 12:45 AM 563280193 <563280...@qq.com> wrote: > Hi , > I ran a spark sql like this: > > *select imei,tag, product_id,* > * sum(case when succ1>=1 then 1 else 0 end) as succ,* > * sum(case when fail1>=1 and succ1=0 then 1 else

spark sql occer error

2019-03-22 Thread 563280193
Hi , I ran a spark sql like this: select imei,tag, product_id, sum(case when succ1>=1 then 1 else 0 end) as succ, sum(case when fail1>=1 and succ1=0 then 1 else 0 end) as fail, count(*) as cnt from t_tbl where sum(case when succ1>=1 then 1 else 0 end)=0

spark sql occer error

2019-03-22 Thread 563280...@qq.com
Hi , I ran a spark sql like this: select imei,tag, product_id, sum(case when succ1>=1 then 1 else 0 end) as succ, sum(case when fail1>=1 and succ1=0 then 1 else 0 end) as fail, count(*) as cnt from t_tbl where sum(case when succ1>=1 then 1 else 0 end)=0 and sum(case when fail1>