SPARK-1562 Fix visibility / annotation of Spark SQL APIs