ueshin commented on a change in pull request #32775:
URL: https://github.com/apache/spark/pull/32775#discussion_r645882104
##########
File path: python/pyspark/pandas/internal.py
##########
@@ -718,8 +927,11 @@ def attach_distributed_sequence_column(
sql_ctx,
)
columns = df.columns
- return df.selectExpr(
- "`{}` as `{}`".format(columns[1], column_name),
"`{}`.*".format(columns[0])
+ return (
+ df.selectExpr(
+ "`{}` as `{}`".format(columns[1], column_name),
"`{}`.*".format(columns[0])
+ ),
+ True,
Review comment:
The `Encoders.tuple` makes object-like elements nullable, which is the
struct converted from the original data frame, and `GetStructField.nullable`
depends on the child's nullability.
--
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]