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 2022/05/13 06:29:52 UTC

[GitHub] [spark] MaxGekk opened a new pull request, #36532: [SPARK-39165][SQL][3.3] Replace `sys.error` by `IllegalStateException`

MaxGekk opened a new pull request, #36532:
URL: https://github.com/apache/spark/pull/36532

   ### What changes were proposed in this pull request?
   Replace all invokes of `sys.error()` by throwing of `IllegalStateException` in the `sql` namespace.
   
   This is a backport of https://github.com/apache/spark/pull/36524.
   
   ### Why are the changes needed?
   In the context of wrapping all internal errors like asserts/illegal state exceptions (see https://github.com/apache/spark/pull/36500), it is impossible to distinguish `RuntimeException` of `sys.error()` from Spark's exceptions like `SparkRuntimeException`. The last one can be propagated to the user space but `sys.error` exceptions shouldn't be visible to users in regular cases.
   
   ### Does this PR introduce _any_ user-facing change?
   No, shouldn't. sys.error shouldn't propagate exception to user space in regular cases.
   
   ### How was this patch tested?
   By running the existing test suites.
   
   Authored-by: Max Gekk <ma...@gmail.com>
   Signed-off-by: Max Gekk <ma...@gmail.com>
   (cherry picked from commit 95c7efd7571464d8adfb76fb22e47a5816cf73fb)
   Signed-off-by: Max Gekk <ma...@gmail.com>


-- 
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] MaxGekk commented on pull request #36532: [SPARK-39165][SQL][3.3] Replace `sys.error` by `IllegalStateException`

Posted by GitBox <gi...@apache.org>.
MaxGekk commented on PR #36532:
URL: https://github.com/apache/spark/pull/36532#issuecomment-1125860826

   Merging to 3.3. Thank you, @HyukjinKwon and @cloud-fan for review.


-- 
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] MaxGekk closed pull request #36532: [SPARK-39165][SQL][3.3] Replace `sys.error` by `IllegalStateException`

Posted by GitBox <gi...@apache.org>.
MaxGekk closed pull request #36532: [SPARK-39165][SQL][3.3] Replace `sys.error` by `IllegalStateException`
URL: https://github.com/apache/spark/pull/36532


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