SPARK-2813:  [SQL] Implement SQRT() directly in Spark SQL

This PR adds a native implementation for SQL SQRT() and thus avoids delegating this function to Hive.
@marmbrus to clarify, should I have a solution for the new type-coercion JIRA before doing any other reimplementations, or can I keep submitting reimplementations as well?