[Spark 2060][SQL] Querying JSON Datasets with SQL and DSL in Spark SQL

JIRA: https://issues.apache.org/jira/browse/SPARK-2060
put the return type explicitly here (is it just Unit)?

We should explicitly define returns types of all public functions.