Skip to content

Conversation

@izendejas
Copy link

Per an email thread I initiated and after feedback and clearing my ICLA, I'm requesting some minor changes be pulled to use the more readable and safer take/tail calls over slice. Also, found an unnecessary Seq instantiation to compute the min of two values. Got rid of reverse sortBys which used negation as they weren't as readable.

Did not create a JIRA as these are very minor, but can do so.

familiarize myself with the process, mostly.

* got rid of SeqLike.reverse calls when sorting by descending order
* replaced slice(1, length) with safer and more readable tail calls
* used foldLeft when aggregating num of docs in naive bayes code
Conflicts:
	core/src/main/scala/org/apache/spark/ui/jobs/JobProgressPage.scala
	core/src/main/scala/org/apache/spark/ui/jobs/PoolPage.scala
	mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@pwendell
Copy link
Contributor

Jenkins, test this please. Thanks for the clean-up! Looks good to me, pending tests...

@pwendell
Copy link
Contributor

Jenkins, test this please.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

Copy link
Contributor

Choose a reason for hiding this comment

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

btw this is probably a part we can speed up and reduce gc by not creating two arrays ...

Copy link
Contributor

Choose a reason for hiding this comment

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

by two arrays, i meant one in parts, and the other for the tail, and the map. We should be able to skip 2 of them.

@AmplabJenkins
Copy link

Merged build finished. All automated tests passed.

@AmplabJenkins
Copy link

All automated tests passed.
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14363/

@rxin
Copy link
Contributor

rxin commented Jun 25, 2014

@izendejas do you mind updating the pull request to address my comment? Everything else looks good.

@izendejas
Copy link
Author

Will do later today. Thanks.

On Wed, Jun 25, 2014 at 1:16 AM, Reynold Xin [email protected]
wrote:

@izendejas https://github.com/izendejas do you mind updating the pull
request to address my comment? Everything else looks good.


Reply to this email directly or view it on GitHub
#473 (comment).

@pwendell
Copy link
Contributor

This is quite out of date, so I think we should close this issue until there is further activity.

@srowen
Copy link
Member

srowen commented Jul 31, 2014

I'd be happy to resuscitate this along with a few similar Scala operation simplifications.

@izendejas
Copy link
Author

My apologies. I had to get clearance from my current employer and then I
totally forgot about it. I'll merge later today. It's quick stuff that was
meant to just get me familiar with the committing process.

On Thu, Jul 31, 2014 at 1:48 AM, Sean Owen [email protected] wrote:

I'd be happy to resuscitate this along with a few similar Scala operation
simplifications.


Reply to this email directly or view it on GitHub
#473 (comment).

Conflicts:
	mllib/src/main/scala/org/apache/spark/mllib/regression/GeneralizedLinearAlgorithm.scala
	mllib/src/main/scala/org/apache/spark/mllib/tree/DecisionTree.scala
@srowen
Copy link
Member

srowen commented Aug 2, 2014

PS if you need a JIRA to attach this to, it's arguably similar to https://issues.apache.org/jira/browse/SPARK-2799

@asfgit asfgit closed this in 87738bf Aug 2, 2014
mccheah pushed a commit to mccheah/spark that referenced this pull request Feb 14, 2019
bzhaoopenstack pushed a commit to bzhaoopenstack/spark that referenced this pull request Sep 11, 2019
RolatZhang pushed a commit to RolatZhang/spark that referenced this pull request Aug 15, 2022
* Revert "fix ut"

This reverts commit 74fced8.

* Revert "[SPARK-39159][SQL] Add new Dataset API for Offset"

This reverts commit b2b95a2.

* Revert "[SPARK-39057][SQL] Offset could work without Limit"

This reverts commit cd1c8cb.

* Revert "[SPARK-28330][SQL] Support ANSI SQL: result offset clause in query expression"

This reverts commit 80310f5.

* update spark version
turboFei pushed a commit to turboFei/spark that referenced this pull request Nov 6, 2025
…ation problem (apache#276)

* CARMEL-4773: Fix role name with upper case (apache#423)

* [CARMEL-4768][CARMEL-4775] Fix NPE issue when `show grant` (apache#426)

* CARMEL-4768 and CARMEL-4775: Fix NPE issue

* fix

* [CARMEL-4874] Role grant with admin option failing on spark 3.0 (apache#473)

* [CARMEL-4874] Role grant with admin option failing on spark 3.0

* Update authorization.scala

---------

Co-authored-by: yumwang <[email protected]>
turboFei pushed a commit to turboFei/spark that referenced this pull request Nov 6, 2025
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.

5 participants