You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "ueshin (via GitHub)" <gi...@apache.org> on 2023/05/30 19:05:36 UTC

[GitHub] [spark] ueshin opened a new pull request, #41390: [SPARK-41971][CONNECT][PYTHON][FOLLOWUP] Fix to_pandas to support the older Spark

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

   ### What changes were proposed in this pull request?
   
   This is a follow-up of #40988.
   
   Fix `to_pandas` to support the older Spark.
   
   For the server:
   
   ```py
   % ./sbin/start-connect-server.sh --packages org.apache.spark:spark-connect_2.12:3.4.0
   ```
   
   with the latest client:
   
   ```py
   >>> spark.sql("values (1, struct('x' as x)) as t(a, b)").toPandas()
      a           b
   0  1  {'x': 'x'}
   ```
   
   ### Why are the changes needed?
   
   The config `spark.sql.execution.pandas.structHandlingMode` introduced in #40988 does not exist in the older Spark, `<3.5` 
   
   ```py
   >>> spark.sql("values (1, struct('x' as x)) as t(a, b)").toPandas()
   Traceback (most recent call last):
   ...
   pyspark.errors.exceptions.connect.SparkConnectGrpcException: (java.util.NoSuchElementException) spark.sql.execution.pandas.structHandlingMode
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   
   The newer Spark Connect client will work with `Spark<3.5`.
   
   ### How was this patch tested?
   
   Manually.
   


-- 
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 #41390: [SPARK-41971][CONNECT][PYTHON][FOLLOWUP] Fix to_pandas to support the older Spark

Posted by "HyukjinKwon (via GitHub)" <gi...@apache.org>.
HyukjinKwon closed pull request #41390: [SPARK-41971][CONNECT][PYTHON][FOLLOWUP] Fix to_pandas to support the older Spark
URL: https://github.com/apache/spark/pull/41390


-- 
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 #41390: [SPARK-41971][CONNECT][PYTHON][FOLLOWUP] Fix to_pandas to support the older Spark

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

   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