Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-13015][MLlib][DOC] Replace example code in mllib-data-types.md using include_example #14006

Closed
wants to merge 12 commits into from

Conversation

yinxusen
Copy link
Contributor

What changes were proposed in this pull request?

  1. Add more specific error prompt for include_example.rb
  2. Replace example code in mllib-data-types.md using include_example

For Scala/Python code, I add imports inside each function, which is easy to control those codes. Java import doesn't support that, so I leave them with duplications.

BTW The tallSkinnyQR in both Scala and Java failed when I ran the code. I'll look into them soon.

How was this patch tested?

Tested manually by running new example code, and generating docs with jekyll build.

@SparkQA
Copy link

SparkQA commented Jun 30, 2016

Test build #61580 has finished for PR 14006 at commit 51018c9.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@yinxusen
Copy link
Contributor Author

yinxusen commented Jul 1, 2016

@liancheng @mengxr

@@ -85,20 +85,20 @@ def select_lines(code)
.select { |l, i| l.include? "$example off#{@snippet_label}$" }
.map { |l, i| i }

raise "Start indices amount is not equal to end indices amount, see #{@file}." \
raise "Start indices amount is not equal to end indices amount, see #{@file}, #{@snippet_label}." \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer

... see #{@file} [labeled=#{@snippet_label}].

Otherwise the label itself might be mistaken for a file path.

@SparkQA
Copy link

SparkQA commented Jul 1, 2016

Test build #61601 has finished for PR 14006 at commit 176a240.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jul 4, 2016

Test build #61703 has finished for PR 14006 at commit 47c7b16.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jul 8, 2016

Test build #61994 has finished for PR 14006 at commit c28fdb8.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@yinxusen
Copy link
Contributor Author

yinxusen commented Jul 8, 2016

@mengxr

@holdenk
Copy link
Contributor

holdenk commented Oct 7, 2016

Hi @yinxusen thanks for working on this - can you update it against the latest master? I'm all for switching our examples to be more include based and the improved error messages during doc builds for invalid includes seems helpful for developers :)

@yinxusen
Copy link
Contributor Author

yinxusen commented Oct 7, 2016

@holdenk I'll update a version ASAP

@SparkQA
Copy link

SparkQA commented Oct 7, 2016

Test build #66533 has finished for PR 14006 at commit 265a62f.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@maropu maropu mentioned this pull request Apr 23, 2017
maropu added a commit to maropu/spark that referenced this pull request Apr 23, 2017
@asfgit asfgit closed this in e9f9715 Apr 24, 2017
peter-toth pushed a commit to peter-toth/spark that referenced this pull request Oct 6, 2018
This pr proposed to close stale PRs. Currently, we have 400+ open PRs and there are some stale PRs whose JIRA tickets have been already closed and whose JIRA tickets does not exist (also, they seem not to be minor issues).

// Open PRs whose JIRA tickets have been already closed
Closes apache#11785
Closes apache#13027
Closes apache#13614
Closes apache#13761
Closes apache#15197
Closes apache#14006
Closes apache#12576
Closes apache#15447
Closes apache#13259
Closes apache#15616
Closes apache#14473
Closes apache#16638
Closes apache#16146
Closes apache#17269
Closes apache#17313
Closes apache#17418
Closes apache#17485
Closes apache#17551
Closes apache#17463
Closes apache#17625

// Open PRs whose JIRA tickets does not exist and they are not minor issues
Closes apache#10739
Closes apache#15193
Closes apache#15344
Closes apache#14804
Closes apache#16993
Closes apache#17040
Closes apache#15180
Closes apache#17238

N/A

Author: Takeshi Yamamuro <yamamuro@apache.org>

Closes apache#17734 from maropu/resolved_pr.

Change-Id: Id2e590aa7283fe5ac01424d30a40df06da6098b5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants