Error: Error while compiling statement: FAILED: UDFArgumentTypeException Exactly one argument is expected.
近期用spark跑数据出现这个情况,最后查到问题是sum(if(a.id is not null,1,0)) as shouldrepay_count,
一开始写的是sum(a.id is not null,1,0) as shouldrepay_count,然后就报上面的错误
Error: Error while compiling statement: FAILED: UDFArgumentTypeException Exactly one argument is expected.
近期用spark跑数据出现这个情况,最后查到问题是sum(if(a.id is not null,1,0)) as shouldrepay_count,
一开始写的是sum(a.id is not null,1,0) as shouldrepay_count,然后就报上面的错误