Add udf to cl_result planner