This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch branch-3.5
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.5 by this push:
     new e2ad91e4547 [SPARK-44424][PYTHON][CONNECT][FOLLOW-UP] Import Connect 
related libraries after checking dependencies
e2ad91e4547 is described below

commit e2ad91e4547cce754ae4fd7e3774883f594dfc72
Author: Hyukjin Kwon <gurwls...@apache.org>
AuthorDate: Thu Aug 3 08:56:25 2023 +0900

    [SPARK-44424][PYTHON][CONNECT][FOLLOW-UP] Import Connect related libraries 
after checking dependencies
    
    ### What changes were proposed in this pull request?
    
    This PR is a followup of https://github.com/apache/spark/pull/42235 that 
fixes the Connect related import after the dependency checking.
    
    ### Why are the changes needed?
    
    In order to show the end users a nice error message for optional 
dependencies instead of just saying that they were not found.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No, the PR has not been released out yet.
    
    ### How was this patch tested?
    
    Manually.
    
    Closes #42311 from HyukjinKwon/SPARK-44424-folowup.
    
    Authored-by: Hyukjin Kwon <gurwls...@apache.org>
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
    (cherry picked from commit 7b9057b90f93d7955e4e8170a4c299700feb0694)
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
---
 python/pyspark/sql/connect/client/core.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/pyspark/sql/connect/client/core.py 
b/python/pyspark/sql/connect/client/core.py
index 2c4e47c0c52..816eb8344fe 100644
--- a/python/pyspark/sql/connect/client/core.py
+++ b/python/pyspark/sql/connect/client/core.py
@@ -20,7 +20,6 @@ __all__ = [
     "getLogLevel",
 ]
 
-from pyspark.sql.connect.client.reattach import 
ExecutePlanResponseReattachableIterator
 from pyspark.sql.connect.utils import check_dependencies
 
 check_dependencies(__name__)
@@ -66,6 +65,7 @@ from google.rpc import error_details_pb2
 from pyspark.version import __version__
 from pyspark.resource.information import ResourceInformation
 from pyspark.sql.connect.client.artifact import ArtifactManager
+from pyspark.sql.connect.client.reattach import 
ExecutePlanResponseReattachableIterator
 from pyspark.sql.connect.conversion import storage_level_to_proto, 
proto_to_storage_level
 import pyspark.sql.connect.proto as pb2
 import pyspark.sql.connect.proto.base_pb2_grpc as grpc_lib


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to