Description
Some simple feature transformations can take leverage on SQL operators. Users do not need to create an ML transformer for each of them. We can have an SQL transformer that executes an SQL command which operates on the input dataframe.
val sql = new SQL() .setStatement("SELECT *, length(text) AS text_length FROM __THIS__")
where "_THIS_" will be replaced by a temp table that represents the DataFrame.
Attachments
Issue Links
- relates to
-
SPARK-11958 Create user guide section for SQLTransformer
- Resolved
- links to