Thanks for your help!
I tried Cast,but get an error:Cannot cast BOOL to Int32.
Then ,i tried using compute,but unfortunately still get an error:Incorrect aggregation specification.Aggregation input column does not exist:a
The code like:
spec->AddAggregation(SUM,"a","cnt_a“);
ScalarAggregate(spec.release(),Compute(If(Equal(ConstBool(true),NamedAttribute("a")),ConstInt32(1),ConstInt32(0)),ScanView(table.view())));
I want to known where can i set the output name ? And how add three If to Compute,nested compute?
Best regards!
在 2014年1月12日星期日UTC+8上午12时24分36秒,ptab写道: