Skip to content

Conversation

@jaceklaskowski
Copy link
Contributor

What changes were proposed in this pull request?

Just squashing a typo in from_json function

How was this patch tested?

local build

@srowen
Copy link
Member

srowen commented Mar 26, 2017

Could you batch these together if you're fixing up some miscellaneous doc typos? and have a look through for more? as we've mentioned a few times, it's just not efficient to review one-liners.

@SparkQA
Copy link

SparkQA commented Mar 26, 2017

Test build #75235 has finished for PR 17434 at commit 3b38503.

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

@jaceklaskowski jaceklaskowski changed the title [SQL][DOC][MINOR] Squashing a typo in from_json function [MINOR] Typo fixes Mar 27, 2017
@SparkQA
Copy link

SparkQA commented Mar 27, 2017

Test build #75266 has finished for PR 17434 at commit 5016af1.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • trait Source

@jaceklaskowski
Copy link
Contributor Author

You'd asked I delivered @srowen

Copy link
Member

@srowen srowen left a comment

Choose a reason for hiding this comment

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

Some of these changes, I wouldn't make, not as 'typo' fixes. Most are good small fixes.


/**
* Register a shuffle with the manager and obtain a handle for it to pass to tasks.
* Obtains a [[ShuffleHandle]] to pass to tasks.
Copy link
Member

Choose a reason for hiding this comment

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

Why remove some of the docs in instances like this? it's not obvious it was superfluous

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a copy from the main method this one overrides. Since the method does not do what the scaladoc said I thought I'd make it current. It might've "Register(ed) a shuffle with the manager" in the past but not today. It was misleading.


/**
* Add an [[Aggregate]] to a logical plan.
* Add an [[Aggregate]] or [[GroupingSets]] to a logical plan.
Copy link
Member

Choose a reason for hiding this comment

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

Probably OK, but it's harder to know whether this is correct. I'm also aware that many [[xxx]] links actually fail to render in javadoc 8 -- have you tested the ones you added?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Didn't check the javadoc and the change follows Aggregate. I'll see how to generate javadoc and check this out (as I've been meaning to do it anyway for some time). Thanks for inspiration!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The package org.apache.spark.sql.catalyst.parser and hence AstBuilder don't show in javadoc/scaladoc.

*
* dataFrame.createOrReplaceTempView("people")
* sparkSession.sql("select name from people").collect.foreach(println)
* sparkSession.sql("select name from people").show
Copy link
Member

Choose a reason for hiding this comment

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

I imagine this is an OK modification but it's not really a typo fix. I'd avoid changes that aren't fixing problems

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree. Just for the record, collect.foreach(println) should not be "endorsed" in Spark 2's official docs as too RDD-ish.


/**
* Force spill during building.
*
Copy link
Member

Choose a reason for hiding this comment

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

Why remove this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not "for testing only". I'd even say that it's more often used in a non-test code than test code. That made the comment no longer correct. See ShuffleExternalSorter and UnsafeShuffleWriter which both are ShuffleWriter instances.

@SparkQA
Copy link

SparkQA commented Mar 28, 2017

Test build #75301 has finished for PR 17434 at commit eb3337e.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Mar 28, 2017

Test build #75302 has finished for PR 17434 at commit eafb626.

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

@jaceklaskowski
Copy link
Contributor Author

Closing as it was merged into #17417.

@jaceklaskowski jaceklaskowski deleted the from_json-typo branch March 29, 2017 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants