[ https://issues.apache.org/jira/browse/SPARK-19444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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