You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/09/18 07:17:20 UTC

[GitHub] [spark] zero323 opened a new pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

zero323 opened a new pull request #29799:
URL: https://github.com/apache/spark/pull/29799


   <!--
   Thanks for sending a pull request!  Here are some tips for you:
     1. If this is your first time, please read our contributor guidelines: https://spark.apache.org/contributing.html
     2. Ensure you have added or run the appropriate tests for your PR: https://spark.apache.org/developer-tools.html
     3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][SPARK-XXXX] Your PR title ...'.
     4. Be sure to keep the PR description updated to reflect all changes.
     5. Please write your PR title to summarize what this PR proposes.
     6. If possible, provide a concise example to reproduce the issue for a faster review.
     7. If you want to add a new configuration, please read the guideline first for naming configurations in
        'core/src/main/scala/org/apache/spark/internal/config/ConfigEntry.scala'.
   -->
   
   ### What changes were proposed in this pull request?
   <!--
   Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue. 
   If possible, please consider writing useful notes for better and faster reviews in your PR. See the examples below.
     1. If you refactor some codes with changing classes, showing the class hierarchy will help reviewers.
     2. If you fix some SQL features, you can provide some references of other DBMSes.
     3. If there is design documentation, please add the link.
     4. If there is a discussion in the mailing list, please add the link.
   -->
   
   This PR adjusts signatures of methods decorated with `keyword_only` to indicate  using [Python 3 keyword-only syntax](https://www.python.org/dev/peps/pep-3102/).
   
   __Note__:
   
   For the moment the goal is not to replace `keyword_only`. For justification see https://github.com/apache/spark/pull/29591#discussion_r489402579
   
   
   ### Why are the changes needed?
   <!--
   Please clarify why the changes are needed. For instance,
     1. If you propose a new API, clarify the use case for a new API.
     2. If you fix a bug, you can clarify why it is a bug.
   -->
   
   Right now it is not clear that `keyword_only` methods are indeed keyword only. This proposal addresses that.
   
   ### Does this PR introduce _any_ user-facing change?
   <!--
   Note that it means *any* user-facing change including all aspects such as the documentation fix.
   If yes, please clarify the previous behavior and the change this PR proposes - provide the console output, description and/or an example to show the behavior difference if possible.
   If possible, please also clarify if this is a user-facing change compared to the released Spark versions or within the unreleased branches such as master.
   If no, write 'No'.
   -->
   
   Docstrings and inspect tools will now indicate that `keyword_only` methods expect only keyword arguments.
   
   ### How was this patch tested?
   <!--
   If tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible.
   If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future.
   If tests were not added, please describe why they were not added and/or why it was difficult to add.
   -->
   
   
   Existing tests.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA removed a comment on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-694982896


   **[Test build #128881 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128881/testReport)** for PR 29799 at commit [`814d933`](https://github.com/apache/spark/commit/814d933e51ecfbd08726caf7762d6dde284d50f4).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA removed a comment on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-696528151


   **[Test build #128968 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128968/testReport)** for PR 29799 at commit [`2d30326`](https://github.com/apache/spark/commit/2d3032633386651cda3bab84f30d3faac5038168).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA removed a comment on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-694883898


   **[Test build #128875 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128875/testReport)** for PR 29799 at commit [`5be1d31`](https://github.com/apache/spark/commit/5be1d315b39db7db5c0580b811922f7cddf9f183).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] huaxingao commented on a change in pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
huaxingao commented on a change in pull request #29799:
URL: https://github.com/apache/spark/pull/29799#discussion_r492333261



##########
File path: python/pyspark/ml/classification.py
##########
@@ -3215,13 +3215,13 @@ def __init__(self, featuresCol="features", labelCol="label", predictionCol="pred
 
     @keyword_only
     @since("3.0.0")
-    def setParams(self, featuresCol="features", labelCol="label", predictionCol="prediction",
+    def setParams(self, *, featuresCol="features", labelCol="label", predictionCol="prediction",
                   probabilityCol="probability", rawPredictionCol="rawPrediction",
                   factorSize=8, fitIntercept=True, fitLinear=True, regParam=0.0,
                   miniBatchFraction=1.0, initStd=0.01, maxIter=100, stepSize=1.0,
                   tol=1e-6, solver="adamW", thresholds=None, seed=None):
         """
-        setParams(self, featuresCol="features", labelCol="label", predictionCol="prediction", \
+        setParams(self, \\*, eaturesCol="features", labelCol="label", predictionCol="prediction", \

Review comment:
       typo ```eaturesCol```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-695020379


   **[Test build #128882 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128882/testReport)** for PR 29799 at commit [`6a50bfe`](https://github.com/apache/spark/commit/6a50bfe77eae3d6311c6cd727ed896a0eaf0d407).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] zero323 commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
zero323 commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-697148400


   Thanks @huaxingao, @HyukjinKwon and @viirya 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-694993304






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-696539487






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-694702739






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-694899083






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-696528626






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-696528626






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-694898385


   **[Test build #128875 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128875/testReport)** for PR 29799 at commit [`5be1d31`](https://github.com/apache/spark/commit/5be1d315b39db7db5c0580b811922f7cddf9f183).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-694702199


   **[Test build #128862 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128862/testReport)** for PR 29799 at commit [`758e91b`](https://github.com/apache/spark/commit/758e91be286037f9e1049a71de266c9ea08d434d).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-694992925


   **[Test build #128881 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128881/testReport)** for PR 29799 at commit [`814d933`](https://github.com/apache/spark/commit/814d933e51ecfbd08726caf7762d6dde284d50f4).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-695029502


   **[Test build #128882 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128882/testReport)** for PR 29799 at commit [`6a50bfe`](https://github.com/apache/spark/commit/6a50bfe77eae3d6311c6cd727ed896a0eaf0d407).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-694983574






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] huaxingao commented on a change in pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
huaxingao commented on a change in pull request #29799:
URL: https://github.com/apache/spark/pull/29799#discussion_r492333859



##########
File path: python/pyspark/ml/regression.py
##########
@@ -683,10 +683,10 @@ class IsotonicRegression(JavaEstimator, _IsotonicRegressionParams, HasWeightCol,
     .. versionadded:: 1.6.0
     """
     @keyword_only
-    def __init__(self, featuresCol="features", labelCol="label", predictionCol="prediction",
+    def __init__(self, *, featuresCol="features", labelCol="label", predictionCol="prediction",
                  weightCol=None, isotonic=True, featureIndex=0):
         """
-        __init__(self, featuresCol="features", labelCol="label", predictionCol="prediction", \
+        __init__(self, \\*, eaturesCol="features", labelCol="label", predictionCol="prediction", \

Review comment:
       typo ```eaturesCol```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-697051504


   Merged to master.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-694993304






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-694983574






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-696539156


   **[Test build #128968 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128968/testReport)** for PR 29799 at commit [`2d30326`](https://github.com/apache/spark/commit/2d3032633386651cda3bab84f30d3faac5038168).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-694712460






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-696528626






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] huaxingao commented on a change in pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
huaxingao commented on a change in pull request #29799:
URL: https://github.com/apache/spark/pull/29799#discussion_r492333261



##########
File path: python/pyspark/ml/classification.py
##########
@@ -3215,13 +3215,13 @@ def __init__(self, featuresCol="features", labelCol="label", predictionCol="pred
 
     @keyword_only
     @since("3.0.0")
-    def setParams(self, featuresCol="features", labelCol="label", predictionCol="prediction",
+    def setParams(self, *, featuresCol="features", labelCol="label", predictionCol="prediction",
                   probabilityCol="probability", rawPredictionCol="rawPrediction",
                   factorSize=8, fitIntercept=True, fitLinear=True, regParam=0.0,
                   miniBatchFraction=1.0, initStd=0.01, maxIter=100, stepSize=1.0,
                   tol=1e-6, solver="adamW", thresholds=None, seed=None):
         """
-        setParams(self, featuresCol="features", labelCol="label", predictionCol="prediction", \
+        setParams(self, \\*, eaturesCol="features", labelCol="label", predictionCol="prediction", \

Review comment:
       typo ```eaturesCol```

##########
File path: python/pyspark/ml/regression.py
##########
@@ -683,10 +683,10 @@ class IsotonicRegression(JavaEstimator, _IsotonicRegressionParams, HasWeightCol,
     .. versionadded:: 1.6.0
     """
     @keyword_only
-    def __init__(self, featuresCol="features", labelCol="label", predictionCol="prediction",
+    def __init__(self, *, featuresCol="features", labelCol="label", predictionCol="prediction",
                  weightCol=None, isotonic=True, featureIndex=0):
         """
-        __init__(self, featuresCol="features", labelCol="label", predictionCol="prediction", \
+        __init__(self, \\*, eaturesCol="features", labelCol="label", predictionCol="prediction", \

Review comment:
       typo ```eaturesCol```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-696528151


   **[Test build #128968 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128968/testReport)** for PR 29799 at commit [`2d30326`](https://github.com/apache/spark/commit/2d3032633386651cda3bab84f30d3faac5038168).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-695017669






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-694702739






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-695029859






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-695017669






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon closed pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
HyukjinKwon closed pull request #29799:
URL: https://github.com/apache/spark/pull/29799


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-694982896


   **[Test build #128881 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128881/testReport)** for PR 29799 at commit [`814d933`](https://github.com/apache/spark/commit/814d933e51ecfbd08726caf7762d6dde284d50f4).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-697051504


   Merged to master.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-694899083






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-694884629






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon closed pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
HyukjinKwon closed pull request #29799:
URL: https://github.com/apache/spark/pull/29799


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA removed a comment on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-696528151


   **[Test build #128968 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128968/testReport)** for PR 29799 at commit [`2d30326`](https://github.com/apache/spark/commit/2d3032633386651cda3bab84f30d3faac5038168).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-696528626






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-694884629






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-694712460






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-696528151






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-695029859






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-694712038


   **[Test build #128862 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128862/testReport)** for PR 29799 at commit [`758e91b`](https://github.com/apache/spark/commit/758e91be286037f9e1049a71de266c9ea08d434d).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-694883898


   **[Test build #128875 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128875/testReport)** for PR 29799 at commit [`5be1d31`](https://github.com/apache/spark/commit/5be1d315b39db7db5c0580b811922f7cddf9f183).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA removed a comment on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-695020379


   **[Test build #128882 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128882/testReport)** for PR 29799 at commit [`6a50bfe`](https://github.com/apache/spark/commit/6a50bfe77eae3d6311c6cd727ed896a0eaf0d407).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA removed a comment on pull request #29799: [SPARK-32933][PYTHON] Use keyword-only syntax for keyword_only methods

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29799:
URL: https://github.com/apache/spark/pull/29799#issuecomment-694702199


   **[Test build #128862 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128862/testReport)** for PR 29799 at commit [`758e91b`](https://github.com/apache/spark/commit/758e91be286037f9e1049a71de266c9ea08d434d).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org