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 2021/10/08 04:14:35 UTC

[GitHub] [spark] HyukjinKwon opened a new pull request #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

HyukjinKwon opened a new pull request #34219:
URL: https://github.com/apache/spark/pull/34219


   ### What changes were proposed in this pull request?
   
   This PR proposes to leverage the error message framework by exposing the methods below:
   
   - `getErrorClass`
   - `getSqlState`
   
   at captured PySpark SQL exceptions (from `SparkThrowable`).
   
   In addition, this PR adds a bit of refactoring. Previously the exception capture was done by string comparison which is flaky. Now, the logic leverages `isInstanceOf` on JVM.
   
   ### Why are the changes needed?
   
   Users can leverage the error class and SQL state codes by:
   
   ```python
   try:
       ...
   except AnalysisException as e:
       if e.getSqlState.startswith("4"):
           ...
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, users now can get `getErrorClass` and `getSqlState` from SQL exceptions.
   
   ### How was this patch tested?
   
   Manually tested, and unittests were added.
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   **[Test build #144008 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/144008/testReport)** for PR 34219 at commit [`cf7f368`](https://github.com/apache/spark/commit/cf7f36874b60dc64a827590baba382858989dd51).


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   Kubernetes integration test status failure
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/48490/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   Kubernetes integration test status failure
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/48485/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/48648/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   Kubernetes integration test starting
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/48490/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   cc @karenfeng @ueshin FYI


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   Kubernetes integration test starting
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/48486/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/144170/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   **[Test build #144008 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/144008/testReport)** for PR 34219 at commit [`cf7f368`](https://github.com/apache/spark/commit/cf7f36874b60dc64a827590baba382858989dd51).
    * This patch **fails PySpark unit 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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 removed a comment on pull request #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   This PR is ready for a look.


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   **[Test build #144008 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/144008/testReport)** for PR 34219 at commit [`cf7f368`](https://github.com/apache/spark/commit/cf7f36874b60dc64a827590baba382858989dd51).


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 a change in pull request #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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



##########
File path: python/pyspark/sql/utils.py
##########
@@ -78,31 +103,34 @@ class UnknownException(CapturedException):
 
 
 def convert_exception(e):
-    s = e.toString()
     c = e.getCause()
-    stacktrace = SparkContext._jvm.org.apache.spark.util.Utils.exceptionString(e)
-
-    if s.startswith('org.apache.spark.sql.AnalysisException: '):
-        return AnalysisException(s.split(': ', 1)[1], stacktrace, c)
-    if s.startswith('org.apache.spark.sql.catalyst.analysis'):

Review comment:
       This was added to capture inherited classes of `AnalysisException` at https://github.com/apache/spark/commit/ef7a5e0bcaee45b907a10b73f11c838ef6e23614. Now it works without this since it can capture by `isInstanceOf`.

##########
File path: python/pyspark/sql/utils.py
##########
@@ -78,31 +103,34 @@ class UnknownException(CapturedException):
 
 
 def convert_exception(e):
-    s = e.toString()
     c = e.getCause()
-    stacktrace = SparkContext._jvm.org.apache.spark.util.Utils.exceptionString(e)
-
-    if s.startswith('org.apache.spark.sql.AnalysisException: '):
-        return AnalysisException(s.split(': ', 1)[1], stacktrace, c)
-    if s.startswith('org.apache.spark.sql.catalyst.analysis'):

Review comment:
       cc @gatorsmile 




-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   **[Test build #144013 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/144013/testReport)** for PR 34219 at commit [`eb27182`](https://github.com/apache/spark/commit/eb271820e6eb5fd979658aa18c90b1e4ec014ce6).


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/144009/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/48486/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/144013/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/144009/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   **[Test build #144048 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/144048/testReport)** for PR 34219 at commit [`624547a`](https://github.com/apache/spark/commit/624547a38d4159d53500236a56a27c7eb9ef4475).
    * 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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   **[Test build #144170 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/144170/testReport)** for PR 34219 at commit [`e98de72`](https://github.com/apache/spark/commit/e98de727b7fc095d102ae53524d1c8f021acf3bd).


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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






-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   Kubernetes integration test starting
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/48648/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/48486/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   **[Test build #144048 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/144048/testReport)** for PR 34219 at commit [`624547a`](https://github.com/apache/spark/commit/624547a38d4159d53500236a56a27c7eb9ef4475).


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/144170/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/144048/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   **[Test build #144009 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/144009/testReport)** for PR 34219 at commit [`f188722`](https://github.com/apache/spark/commit/f188722e00da32562a471bf7d884636f539ec4b9).


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   Kubernetes integration test status failure
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/48525/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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] ueshin commented on a change in pull request #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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



##########
File path: python/pyspark/sql/utils.py
##########
@@ -16,24 +16,55 @@
 #
 
 import py4j
+from py4j.java_gateway import is_instance_of
 
 from pyspark import SparkContext
 
 
 class CapturedException(Exception):
-    def __init__(self, desc, stackTrace, cause=None):
-        self.desc = desc
-        self.stackTrace = stackTrace
+    def __init__(self, desc=None, stackTrace=None, cause=None, origin=None):
+        # desc & stackTrace vs origin are mutually exclusive.
+        # cause is optional.
+        assert ((origin is not None and desc is None and stackTrace is None)
+                or (origin is None and desc is not None and stackTrace is not None))
+
+        self.desc = desc if desc is not None else origin.getMessage()
+        self.stackTrace = (
+            stackTrace if stackTrace is not None
+            else SparkContext._jvm.org.apache.spark.util.Utils.exceptionString(origin)
+        )
         self.cause = convert_exception(cause) if cause is not None else None
+        if self.cause is None and origin is not None and origin.getCause() is not None:
+            self.cause = convert_exception(origin.getCause())
+        self._origin = origin
 
     def __str__(self):
-        sql_conf = SparkContext._jvm.org.apache.spark.sql.internal.SQLConf.get()
+        assert SparkContext._jvm is not None
+
+        jvm = SparkContext._jvm
+        sql_conf = jvm.org.apache.spark.sql.internal.SQLConf.get()
         debug_enabled = sql_conf.pysparkJVMStacktraceEnabled()
         desc = self.desc
         if debug_enabled:
             desc = desc + "\n\nJVM stacktrace:\n%s" % self.stackTrace
         return str(desc)
 
+    def getErrorClass(self):
+        assert SparkContext._gateway is not None
+
+        gw = SparkContext._gateway
+        if self._origin is not None and is_instance_of(
+                gw, self._origin, "org.apache.spark.SparkThrowable"):
+            return self._origin.getErrorClass()
+
+    def getSqlState(self):
+        assert SparkContext._gateway is not None
+
+        gw = SparkContext._gateway
+        if self._origin is not None and is_instance_of(
+                gw, self._origin, "org.apache.spark.SparkThrowable"):
+            return self._origin.getSqlState()

Review comment:
       ditto.

##########
File path: python/pyspark/sql/utils.py
##########
@@ -16,24 +16,55 @@
 #
 
 import py4j
+from py4j.java_gateway import is_instance_of
 
 from pyspark import SparkContext
 
 
 class CapturedException(Exception):
-    def __init__(self, desc, stackTrace, cause=None):
-        self.desc = desc
-        self.stackTrace = stackTrace
+    def __init__(self, desc=None, stackTrace=None, cause=None, origin=None):
+        # desc & stackTrace vs origin are mutually exclusive.
+        # cause is optional.
+        assert ((origin is not None and desc is None and stackTrace is None)
+                or (origin is None and desc is not None and stackTrace is not None))
+
+        self.desc = desc if desc is not None else origin.getMessage()
+        self.stackTrace = (
+            stackTrace if stackTrace is not None
+            else SparkContext._jvm.org.apache.spark.util.Utils.exceptionString(origin)
+        )
         self.cause = convert_exception(cause) if cause is not None else None
+        if self.cause is None and origin is not None and origin.getCause() is not None:
+            self.cause = convert_exception(origin.getCause())
+        self._origin = origin
 
     def __str__(self):
-        sql_conf = SparkContext._jvm.org.apache.spark.sql.internal.SQLConf.get()
+        assert SparkContext._jvm is not None
+
+        jvm = SparkContext._jvm
+        sql_conf = jvm.org.apache.spark.sql.internal.SQLConf.get()
         debug_enabled = sql_conf.pysparkJVMStacktraceEnabled()
         desc = self.desc
         if debug_enabled:
             desc = desc + "\n\nJVM stacktrace:\n%s" % self.stackTrace
         return str(desc)
 
+    def getErrorClass(self):
+        assert SparkContext._gateway is not None
+
+        gw = SparkContext._gateway
+        if self._origin is not None and is_instance_of(
+                gw, self._origin, "org.apache.spark.SparkThrowable"):
+            return self._origin.getErrorClass()

Review comment:
       We should explicitly return `None` or raise an error for `else` case?




-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/144008/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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] ueshin commented on a change in pull request #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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



##########
File path: python/pyspark/sql/utils.py
##########
@@ -16,24 +16,55 @@
 #
 
 import py4j
+from py4j.java_gateway import is_instance_of
 
 from pyspark import SparkContext
 
 
 class CapturedException(Exception):
-    def __init__(self, desc, stackTrace, cause=None):
-        self.desc = desc
-        self.stackTrace = stackTrace
+    def __init__(self, desc=None, stackTrace=None, cause=None, origin=None):
+        # desc & stackTrace vs origin are mutually exclusive.
+        # cause is optional.
+        assert ((origin is not None and desc is None and stackTrace is None)
+                or (origin is None and desc is not None and stackTrace is not None))
+
+        self.desc = desc if desc is not None else origin.getMessage()
+        self.stackTrace = (
+            stackTrace if stackTrace is not None
+            else SparkContext._jvm.org.apache.spark.util.Utils.exceptionString(origin)
+        )
         self.cause = convert_exception(cause) if cause is not None else None
+        if self.cause is None and origin is not None and origin.getCause() is not None:
+            self.cause = convert_exception(origin.getCause())
+        self._origin = origin
 
     def __str__(self):
-        sql_conf = SparkContext._jvm.org.apache.spark.sql.internal.SQLConf.get()
+        assert SparkContext._jvm is not None
+
+        jvm = SparkContext._jvm
+        sql_conf = jvm.org.apache.spark.sql.internal.SQLConf.get()
         debug_enabled = sql_conf.pysparkJVMStacktraceEnabled()
         desc = self.desc
         if debug_enabled:
             desc = desc + "\n\nJVM stacktrace:\n%s" % self.stackTrace
         return str(desc)
 
+    def getErrorClass(self):
+        assert SparkContext._gateway is not None
+
+        gw = SparkContext._gateway
+        if self._origin is not None and is_instance_of(
+                gw, self._origin, "org.apache.spark.SparkThrowable"):
+            return self._origin.getErrorClass()
+
+    def getSqlState(self):
+        assert SparkContext._gateway is not None
+
+        gw = SparkContext._gateway
+        if self._origin is not None and is_instance_of(
+                gw, self._origin, "org.apache.spark.SparkThrowable"):
+            return self._origin.getSqlState()

Review comment:
       ditto.

##########
File path: python/pyspark/sql/utils.py
##########
@@ -16,24 +16,55 @@
 #
 
 import py4j
+from py4j.java_gateway import is_instance_of
 
 from pyspark import SparkContext
 
 
 class CapturedException(Exception):
-    def __init__(self, desc, stackTrace, cause=None):
-        self.desc = desc
-        self.stackTrace = stackTrace
+    def __init__(self, desc=None, stackTrace=None, cause=None, origin=None):
+        # desc & stackTrace vs origin are mutually exclusive.
+        # cause is optional.
+        assert ((origin is not None and desc is None and stackTrace is None)
+                or (origin is None and desc is not None and stackTrace is not None))
+
+        self.desc = desc if desc is not None else origin.getMessage()
+        self.stackTrace = (
+            stackTrace if stackTrace is not None
+            else SparkContext._jvm.org.apache.spark.util.Utils.exceptionString(origin)
+        )
         self.cause = convert_exception(cause) if cause is not None else None
+        if self.cause is None and origin is not None and origin.getCause() is not None:
+            self.cause = convert_exception(origin.getCause())
+        self._origin = origin
 
     def __str__(self):
-        sql_conf = SparkContext._jvm.org.apache.spark.sql.internal.SQLConf.get()
+        assert SparkContext._jvm is not None
+
+        jvm = SparkContext._jvm
+        sql_conf = jvm.org.apache.spark.sql.internal.SQLConf.get()
         debug_enabled = sql_conf.pysparkJVMStacktraceEnabled()
         desc = self.desc
         if debug_enabled:
             desc = desc + "\n\nJVM stacktrace:\n%s" % self.stackTrace
         return str(desc)
 
+    def getErrorClass(self):
+        assert SparkContext._gateway is not None
+
+        gw = SparkContext._gateway
+        if self._origin is not None and is_instance_of(
+                gw, self._origin, "org.apache.spark.SparkThrowable"):
+            return self._origin.getErrorClass()

Review comment:
       We should explicitly return `None` or raise an error for `else` case?




-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   **[Test build #144170 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/144170/testReport)** for PR 34219 at commit [`e98de72`](https://github.com/apache/spark/commit/e98de727b7fc095d102ae53524d1c8f021acf3bd).
    * 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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/48490/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   **[Test build #144170 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/144170/testReport)** for PR 34219 at commit [`e98de72`](https://github.com/apache/spark/commit/e98de727b7fc095d102ae53524d1c8f021acf3bd).


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/48490/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/48525/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   This PR is ready for a look.


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/48485/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   Kubernetes integration test starting
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/48485/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/48485/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/144048/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   Kubernetes integration test status failure
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/48648/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   @karenfeng @ueshin mind taking a look please?


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   **[Test build #144048 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/144048/testReport)** for PR 34219 at commit [`624547a`](https://github.com/apache/spark/commit/624547a38d4159d53500236a56a27c7eb9ef4475).


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/144013/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/144008/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   **[Test build #144009 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/144009/testReport)** for PR 34219 at commit [`f188722`](https://github.com/apache/spark/commit/f188722e00da32562a471bf7d884636f539ec4b9).


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   Kubernetes integration test status failure
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/48486/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   **[Test build #144013 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/144013/testReport)** for PR 34219 at commit [`eb27182`](https://github.com/apache/spark/commit/eb271820e6eb5fd979658aa18c90b1e4ec014ce6).


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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






-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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






-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/48648/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   Kubernetes integration test starting
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/48525/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   **[Test build #144009 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/144009/testReport)** for PR 34219 at commit [`f188722`](https://github.com/apache/spark/commit/f188722e00da32562a471bf7d884636f539ec4b9).
    * This patch **fails PySpark unit 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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   **[Test build #144013 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/144013/testReport)** for PR 34219 at commit [`eb27182`](https://github.com/apache/spark/commit/eb271820e6eb5fd979658aa18c90b1e4ec014ce6).
    * 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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   This PR is ready for a look.


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/48525/
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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






-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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 #34219: [SPARK-36953][PYTHON] Expose SQL state and error class in PySpark exceptions

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


   **[Test build #144170 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/144170/testReport)** for PR 34219 at commit [`e98de72`](https://github.com/apache/spark/commit/e98de727b7fc095d102ae53524d1c8f021acf3bd).


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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