You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "xieshuaihu (via GitHub)" <gi...@apache.org> on 2023/11/07 09:51:22 UTC

[PR] [SPARK-45821][CONNECT]make SparkSession._apply_options throw exception [spark]

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

   ### What changes were proposed in this pull request?
   
   Make SparkSession._apply_options throw exception
   
   
   ### Why are the changes needed?
   
   In current master branch, the following code will success which is unexpected.
   
   ```
   from pyspark.sql import SparkSession
   spark = SparkSession.builder.config("some_key", "some_value").remote(f"sc://an unreachable connect server").create()
   print("here") # shouldn't be executed
   ```
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   No
   
   
   ### How was this patch tested?
   
   No test. I didn't find pyspark connect unit tests...
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No


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


Re: [PR] [SPARK-45821][CONNECT]make SparkSession._apply_options throw exception [spark]

Posted by "xieshuaihu (via GitHub)" <gi...@apache.org>.
xieshuaihu commented on PR #43700:
URL: https://github.com/apache/spark/pull/43700#issuecomment-1800917971

   @HyukjinKwon a gentle ping on this pr


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


Re: [PR] [SPARK-45821][CONNECT]make SparkSession._apply_options throw exception [spark]

Posted by "xieshuaihu (via GitHub)" <gi...@apache.org>.
xieshuaihu commented on PR #43700:
URL: https://github.com/apache/spark/pull/43700#issuecomment-1798170192

   I think `_apply_options` don't need to catch excption, because `RuntimeConf.set` has retried and log warnings.
   
   cc @HyukjinKwon 


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


Re: [PR] [SPARK-45821][CONNECT]make SparkSession._apply_options throw exception [spark]

Posted by "xieshuaihu (via GitHub)" <gi...@apache.org>.
xieshuaihu commented on PR #43700:
URL: https://github.com/apache/spark/pull/43700#issuecomment-1803345406

   cc @dongjoon-hyun 


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


Re: [PR] [SPARK-45821][CONNECT]make SparkSession._apply_options throw exception [spark]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #43700: [SPARK-45821][CONNECT]make SparkSession._apply_options throw exception
URL: https://github.com/apache/spark/pull/43700


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