Github user HyukjinKwon commented on a diff in the pull request: https://github.com/apache/spark/pull/16013#discussion_r89727059 --- Diff: mllib/src/main/scala/org/apache/spark/ml/feature/SQLTransformer.scala --- @@ -33,9 +33,9 @@ import org.apache.spark.sql.types.StructType * use Spark SQL built-in function and UDFs to operate on these selected columns. * For example, [[SQLTransformer]] supports statements like: * {{{ - * - SELECT a, a + b AS a_b FROM __THIS__ - * - SELECT a, SQRT(b) AS b_sqrt FROM __THIS__ where a > 5 - * - SELECT a, b, SUM(c) AS c_sum FROM __THIS__ GROUP BY a, b + * SELECT a, a + b AS a_b FROM __THIS__ + * SELECT a, SQRT(b) AS b_sqrt FROM __THIS__ where a > 5 + * SELECT a, b, SUM(c) AS c_sum FROM __THIS__ GROUP BY a, b --- End diff -- - Java ![2016-11-28 2 28 18](https://cloud.githubusercontent.com/assets/6477701/20657138/f208e7ae-b576-11e6-82ee-bb709ee03c2f.png) - Scala ![2016-11-28 2 28 24](https://cloud.githubusercontent.com/assets/6477701/20657139/f35c7242-b576-11e6-9a4e-1b68943ad4b1.png)
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org