[
https://issues.apache.org/jira/browse/SPARK-8345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14620012#comment-14620012
]
Xiangrui Meng commented on SPARK-8345:
--------------------------------------
Great! I didn't design this carefully, e.g., "SQL" is apparently not a good
name. So please think about corner cases when you implement it.
> Add an SQL node as a feature transformer
> ----------------------------------------
>
> Key: SPARK-8345
> URL: https://issues.apache.org/jira/browse/SPARK-8345
> Project: Spark
> Issue Type: Sub-task
> Components: ML
> Reporter: Xiangrui Meng
> Assignee: Yanbo Liang
>
> 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.
> {code}
> val sql = new SQL()
> .setStatement("SELECT *, length(text) AS text_length FROM __THIS__")
> {code}
> where "__THIS__" will be replaced by a temp table that represents the
> DataFrame.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]