HyukjinKwon commented on code in PR #42718:
URL: https://github.com/apache/spark/pull/42718#discussion_r1308378355


##########
python/pyspark/sql/connect/session.py:
##########
@@ -885,12 +885,13 @@ def create_conf(**kwargs: Any) -> SparkConf:
                     SparkContext.getOrCreate(create_conf(loadDefaults=True, 
_jvm=SparkContext._jvm))
                 )
 
-                # Lastly remove all static configurations that are not allowed 
to set in the regular
-                # Spark Connect session.
-                jvm = SparkContext._jvm
-                utl = jvm.org.apache.spark.sql.api.python.PythonSQLUtils  # 
type: ignore[union-attr]
-                for conf_set in utl.listStaticSQLConfigs():
-                    opts.pop(conf_set._1(), None)
+                # Lastly only keep runtime configurations because other 
configurations are
+                # disallowed to set in the regular Spark Connect session.
+                utl = SparkContext._jvm.PythonSQLUtils  # type: 
ignore[union-attr]

Review Comment:
   `org.apache.spark.sql.api.python.PythonSQLUtils` is automatically imported 
as a shortcut



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to