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 2021/04/24 10:27:30 UTC
[GitHub] [spark] sadhen opened a new pull request #32321: [SPARK-34771][PySpark] Support UDT for Pandas/Spark conversion with Arrow support Enabled
sadhen opened a new pull request #32321:
URL: https://github.com/apache/spark/pull/32321
### What changes were proposed in this pull request?
Fix a bug of Pandas/Spark conversion with Arrow support enabled.
Support DataType with UDT:
+ [x] UDT
+ [x] ArrayType(UDT)
+ [x] <del>StructType(..., UDT, ...)</del>, postponed
``` python
spark.conf.set("spark.sql.execution.arrow.pyspark.enabled", True)
from pyspark.testing.sqlutils import ExamplePoint, ExamplePointUDT
from pyspark.sql.types import StructType, StructField
import pandas as pd
schema = StructType([StructField('point', ExamplePointUDT(), False)])
pdf = pd.DataFrame({'point': pd.Series([ExamplePoint(1, 1), ExamplePoint(2, 2)])})
df = spark.createDataFrame(pdf, schema)
print(df.toPandas())
```
before (because it fallbacks to arrow disabled):
```
point
0 (0.0,0.0)
1 (0.0,0.0)
```
after:
```
point
0 (1.0,1.0)
1 (2.0,2.0)
```
### Why are the changes needed?
Fix a bug.
For UDT without Arrow support, I will create another PR.
### Does this PR introduce _any_ user-facing change?
Support Python UDT in PySpark now. No user-facing changes.
### How was this patch tested?
``` bash
python/run-tests --testnames pyspark.sql.tests.test_arrow
```
--
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.
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] github-actions[bot] commented on pull request #32321: [SPARK-34771][PYTHON] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #32321:
URL: https://github.com/apache/spark/pull/32321#issuecomment-962709089
We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!
--
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] AmplabJenkins commented on pull request #32321: [SPARK-34771][PYTHON] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32321:
URL: https://github.com/apache/spark/pull/32321#issuecomment-889693407
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/141870/
--
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] SparkQA commented on pull request #32321: [SPARK-34771][PYTHON] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32321:
URL: https://github.com/apache/spark/pull/32321#issuecomment-889300235
**[Test build #141850 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/141850/testReport)** for PR 32321 at commit [`27b256b`](https://github.com/apache/spark/commit/27b256b3d9e87d22969b62df0b50f5cf326ecbf6).
* This patch **fails to build**.
* This patch merges cleanly.
* This patch adds no public classes.
--
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] AmplabJenkins commented on pull request #32321: [SPARK-34771][PySpark] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32321:
URL: https://github.com/apache/spark/pull/32321#issuecomment-826071737
--
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.
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] SparkQA removed a comment on pull request #32321: [SPARK-34771][PYTHON] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #32321:
URL: https://github.com/apache/spark/pull/32321#issuecomment-889294021
**[Test build #141850 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/141850/testReport)** for PR 32321 at commit [`27b256b`](https://github.com/apache/spark/commit/27b256b3d9e87d22969b62df0b50f5cf326ecbf6).
--
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] github-actions[bot] closed pull request #32321: [SPARK-34771][PYTHON] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed pull request #32321:
URL: https://github.com/apache/spark/pull/32321
--
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] SparkQA commented on pull request #32321: [SPARK-34771][PYTHON] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32321:
URL: https://github.com/apache/spark/pull/32321#issuecomment-889586218
**[Test build #141870 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/141870/testReport)** for PR 32321 at commit [`0e6fcf2`](https://github.com/apache/spark/commit/0e6fcf27fee7fe608163b75893e252cf8256d1ee).
--
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] SparkQA removed a comment on pull request #32321: [SPARK-34771][PYTHON] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #32321:
URL: https://github.com/apache/spark/pull/32321#issuecomment-826071637
**[Test build #137883 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137883/testReport)** for PR 32321 at commit [`5845ee2`](https://github.com/apache/spark/commit/5845ee2419515b9243ea4396005f731eb294b6a9).
--
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.
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] AmplabJenkins removed a comment on pull request #32321: [SPARK-34771][PYTHON] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32321:
URL: https://github.com/apache/spark/pull/32321#issuecomment-826071737
--
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.
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] SparkQA commented on pull request #32321: [SPARK-34771][PYTHON] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32321:
URL: https://github.com/apache/spark/pull/32321#issuecomment-889687825
**[Test build #141870 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/141870/testReport)** for PR 32321 at commit [`0e6fcf2`](https://github.com/apache/spark/commit/0e6fcf27fee7fe608163b75893e252cf8256d1ee).
* This patch passes all tests.
* This patch merges cleanly.
* This patch adds no public classes.
--
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] SparkQA commented on pull request #32321: [SPARK-34771][PySpark] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32321:
URL: https://github.com/apache/spark/pull/32321#issuecomment-826071637
**[Test build #137883 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137883/testReport)** for PR 32321 at commit [`5845ee2`](https://github.com/apache/spark/commit/5845ee2419515b9243ea4396005f731eb294b6a9).
--
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.
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] AmplabJenkins removed a comment on pull request #32321: [SPARK-34771][PYTHON] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32321:
URL: https://github.com/apache/spark/pull/32321#issuecomment-889693407
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/141870/
--
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] SparkQA commented on pull request #32321: [SPARK-34771][PySpark] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32321:
URL: https://github.com/apache/spark/pull/32321#issuecomment-826071637
--
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.
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] AmplabJenkins removed a comment on pull request #32321: [SPARK-34771][PYTHON] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32321:
URL: https://github.com/apache/spark/pull/32321#issuecomment-889300285
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/141850/
--
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] AmplabJenkins commented on pull request #32321: [SPARK-34771][PySpark] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32321:
URL: https://github.com/apache/spark/pull/32321#issuecomment-826071737
Can one of the admins verify this patch?
--
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.
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] SparkQA commented on pull request #32321: [SPARK-34771][PYTHON] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32321:
URL: https://github.com/apache/spark/pull/32321#issuecomment-889294021
**[Test build #141850 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/141850/testReport)** for PR 32321 at commit [`27b256b`](https://github.com/apache/spark/commit/27b256b3d9e87d22969b62df0b50f5cf326ecbf6).
--
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] SparkQA commented on pull request #32321: [SPARK-34771][PYTHON] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32321:
URL: https://github.com/apache/spark/pull/32321#issuecomment-826104482
**[Test build #137883 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137883/testReport)** for PR 32321 at commit [`5845ee2`](https://github.com/apache/spark/commit/5845ee2419515b9243ea4396005f731eb294b6a9).
* This patch passes all tests.
* This patch merges cleanly.
* This patch adds no public classes.
--
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.
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] AmplabJenkins commented on pull request #32321: [SPARK-34771][PYTHON] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32321:
URL: https://github.com/apache/spark/pull/32321#issuecomment-826107857
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137883/
--
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.
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] SparkQA removed a comment on pull request #32321: [SPARK-34771][PYTHON] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #32321:
URL: https://github.com/apache/spark/pull/32321#issuecomment-889586218
**[Test build #141870 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/141870/testReport)** for PR 32321 at commit [`0e6fcf2`](https://github.com/apache/spark/commit/0e6fcf27fee7fe608163b75893e252cf8256d1ee).
--
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] AmplabJenkins commented on pull request #32321: [SPARK-34771][PYTHON] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32321:
URL: https://github.com/apache/spark/pull/32321#issuecomment-889300285
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/141850/
--
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] AmplabJenkins removed a comment on pull request #32321: [SPARK-34771][PYTHON] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32321:
URL: https://github.com/apache/spark/pull/32321#issuecomment-826071737
--
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.
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] SparkQA removed a comment on pull request #32321: [SPARK-34771][PYTHON] Support UDT for Pandas/Spark conversion with Arrow support Enabled
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #32321:
URL: https://github.com/apache/spark/pull/32321#issuecomment-826071637
**[Test build #137883 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137883/testReport)** for PR 32321 at commit [`5845ee2`](https://github.com/apache/spark/commit/5845ee2419515b9243ea4396005f731eb294b6a9).
--
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.
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