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/03/02 18:22:34 UTC
[GitHub] [spark] ueshin commented on a diff in pull request #40238: [SPARK-42633][CONNECT] Make LocalRelation take an actual schema
ueshin commented on code in PR #40238:
URL: https://github.com/apache/spark/pull/40238#discussion_r1123536612
##########
python/pyspark/sql/connect/plan.py:
##########
@@ -338,7 +338,7 @@ def plan(self, session: "SparkConnectClient") -> proto.Relation:
plan.local_relation.data = sink.getvalue().to_pybytes()
if self._schema is not None:
- plan.local_relation.schema = self._schema
+ plan.local_relation.schemaString = self._schema
Review Comment:
```suggestion
plan.local_relation.schema_string = self._schema
```
--
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