[SPARK-4735] Spark SQL UDF doesn't support 0 arguments

I fixed the udf bug.
https://issues.apache.org/jira/browse/SPARK-4735