-
- Downloads
[SPARK-14563][ML] use a random table name instead of __THIS__ in SQLTransformer
## What changes were proposed in this pull request? Use a random table name instead of `__THIS__` in SQLTransformer, and add a test for `transformSchema`. The problems of using `__THIS__` are: * It doesn't work under HiveContext (in Spark 1.6) * Race conditions ## How was this patch tested? * Manual test with HiveContext. * Added a unit test for `transformSchema` to improve coverage. cc: yhuai Author: Xiangrui Meng <meng@databricks.com> Closes #12330 from mengxr/SPARK-14563.
Showing
- mllib/src/main/scala/org/apache/spark/ml/feature/SQLTransformer.scala 6 additions, 4 deletions...in/scala/org/apache/spark/ml/feature/SQLTransformer.scala
- mllib/src/test/scala/org/apache/spark/ml/feature/SQLTransformerSuite.scala 10 additions, 0 deletions...ala/org/apache/spark/ml/feature/SQLTransformerSuite.scala
Please register or sign in to comment