[jira] [Commented] (SPARK-19444) Tokenizer example does not compile without extra imports

2017-02-03 Thread Apache Spark (JIRA)

[ 
https://issues.apache.org/jira/browse/SPARK-19444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15851589#comment-15851589
 ] 

Apache Spark commented on SPARK-19444:
--

User 'anshbansal' has created a pull request for this issue:
https://github.com/apache/spark/pull/16789

> Tokenizer example does not compile without extra imports
> 
>
> Key: SPARK-19444
> URL: https://issues.apache.org/jira/browse/SPARK-19444
> Project: Spark
>  Issue Type: Documentation
>  Components: Documentation
>Affects Versions: 2.1.0
>Reporter: Aseem Bansal
>Priority: Minor
>
> The example at http://spark.apache.org/docs/2.1.0/ml-features.html#tokenizer 
> does not compile without the following static import
> import static org.apache.spark.sql.functions.*;



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Commented] (SPARK-19444) Tokenizer example does not compile without extra imports

2017-02-03 Thread Aseem Bansal (JIRA)

[ 
https://issues.apache.org/jira/browse/SPARK-19444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15851588#comment-15851588
 ] 

Aseem Bansal commented on SPARK-19444:
--

https://github.com/apache/spark/pull/16789

> Tokenizer example does not compile without extra imports
> 
>
> Key: SPARK-19444
> URL: https://issues.apache.org/jira/browse/SPARK-19444
> Project: Spark
>  Issue Type: Documentation
>  Components: Documentation
>Affects Versions: 2.1.0
>Reporter: Aseem Bansal
>Priority: Minor
>
> The example at http://spark.apache.org/docs/2.1.0/ml-features.html#tokenizer 
> does not compile without the following static import
> import static org.apache.spark.sql.functions.*;



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Commented] (SPARK-19444) Tokenizer example does not compile without extra imports

2017-02-03 Thread Sean Owen (JIRA)

[ 
https://issues.apache.org/jira/browse/SPARK-19444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15851515#comment-15851515
 ] 

Sean Owen commented on SPARK-19444:
---

You're right, I think this may be a copy-and-paste problem. I don't know much 
about the example include mechanism, but it looks like this is a way to tag 
code as part of only a certain example. In this case, we don't want that tag 
whereas it might have been relevant in its source. You can just make all of the 
imports part of one "example on" block.

> Tokenizer example does not compile without extra imports
> 
>
> Key: SPARK-19444
> URL: https://issues.apache.org/jira/browse/SPARK-19444
> Project: Spark
>  Issue Type: Documentation
>  Components: Documentation
>Affects Versions: 2.1.0
>Reporter: Aseem Bansal
>Priority: Minor
>
> The example at http://spark.apache.org/docs/2.1.0/ml-features.html#tokenizer 
> does not compile without the following static import
> import static org.apache.spark.sql.functions.*;



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Commented] (SPARK-19444) Tokenizer example does not compile without extra imports

2017-02-03 Thread Aseem Bansal (JIRA)

[ 
https://issues.apache.org/jira/browse/SPARK-19444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15851382#comment-15851382
 ] 

Aseem Bansal commented on SPARK-19444:
--

[~srowen]
I can find the location at 
https://github.com/apache/spark/blob/master/docs/ml-features.md
which led me to 
https://github.com/apache/spark/blob/master/examples/src/main/java/org/apache/spark/examples/ml/JavaTokenizerExample.java#L40
 

but what is 
$example on:untyped_ops$

The imports are there. But seems this is broken. Then this is probably a 
parsing issue?

> Tokenizer example does not compile without extra imports
> 
>
> Key: SPARK-19444
> URL: https://issues.apache.org/jira/browse/SPARK-19444
> Project: Spark
>  Issue Type: Documentation
>  Components: Documentation
>Affects Versions: 2.1.0
>Reporter: Aseem Bansal
>Priority: Minor
>
> The example at http://spark.apache.org/docs/2.1.0/ml-features.html#tokenizer 
> does not compile without the following static import
> import static org.apache.spark.sql.functions.*;



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Commented] (SPARK-19444) Tokenizer example does not compile without extra imports

2017-02-03 Thread Sean Owen (JIRA)

[ 
https://issues.apache.org/jira/browse/SPARK-19444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15851360#comment-15851360
 ] 

Sean Owen commented on SPARK-19444:
---

Go ahead and fix it. Could you check, if possible, for similar problems? maybe 
scan for instances where the Scala example makes this import but Java doesn't.

> Tokenizer example does not compile without extra imports
> 
>
> Key: SPARK-19444
> URL: https://issues.apache.org/jira/browse/SPARK-19444
> Project: Spark
>  Issue Type: Documentation
>  Components: Documentation
>Affects Versions: 2.1.0
>Reporter: Aseem Bansal
>Priority: Minor
>
> The example at http://spark.apache.org/docs/2.1.0/ml-features.html#tokenizer 
> does not compile without the following static import
> import static org.apache.spark.sql.functions.*;



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org