Repository: spark Updated Branches: refs/heads/branch-2.1 fe4fcc570 -> a3b675137
[SPARK-19574][ML][DOCUMENTATION] Fix Liquid Exception: Start indices amount is not equal to end indices amount ### What changes were proposed in this pull request? ``` Liquid Exception: Start indices amount is not equal to end indices amount, see /Users/xiao/IdeaProjects/sparkDelivery/docs/../examples/src/main/java/org/apache/spark/examples/ml/JavaTokenizerExample.java. in ml-features.md ``` So far, the build is broken after merging https://github.com/apache/spark/pull/16789 This PR is to fix it. ## How was this patch tested? Manual Author: Xiao Li <gatorsm...@gmail.com> Closes #16908 from gatorsmile/docMLFix. (cherry picked from commit 855a1b7551c71b26ce7d9310342fefe0a87281ec) Signed-off-by: Sean Owen <so...@cloudera.com> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/a3b67513 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/a3b67513 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/a3b67513 Branch: refs/heads/branch-2.1 Commit: a3b6751375cf301dec156b85fe79e32b0797a24f Parents: fe4fcc5 Author: Xiao Li <gatorsm...@gmail.com> Authored: Mon Feb 13 11:18:31 2017 +0000 Committer: Sean Owen <so...@cloudera.com> Committed: Mon Feb 13 11:19:11 2017 +0000 ---------------------------------------------------------------------- .../java/org/apache/spark/examples/ml/JavaTokenizerExample.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/a3b67513/examples/src/main/java/org/apache/spark/examples/ml/JavaTokenizerExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/spark/examples/ml/JavaTokenizerExample.java b/examples/src/main/java/org/apache/spark/examples/ml/JavaTokenizerExample.java index 2fae07a..f42fd33 100644 --- a/examples/src/main/java/org/apache/spark/examples/ml/JavaTokenizerExample.java +++ b/examples/src/main/java/org/apache/spark/examples/ml/JavaTokenizerExample.java @@ -39,7 +39,7 @@ import org.apache.spark.sql.types.StructType; // col("...") is preferable to df.col("...") import static org.apache.spark.sql.functions.callUDF; import static org.apache.spark.sql.functions.col; -// $example off +// $example off$ public class JavaTokenizerExample { public static void main(String[] args) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org