ueshin commented on a change in pull request #33968:
URL: https://github.com/apache/spark/pull/33968#discussion_r707770623



##########
File path: python/pyspark/pandas/series.py
##########
@@ -4548,22 +4548,31 @@ def update(self, other: "Series") -> None:
         if not isinstance(other, Series):
             raise TypeError("'other' must be a Series")
 
-        combined = combine_frames(self._psdf, other._psdf, how="leftouter")
+        if same_anchor(self, other):
+            scol = F.when(other.spark.column.isNotNull(), 
other.spark.column).otherwise(
+                self.spark.column
+            )

Review comment:
       We should alias the `scol` with the original name?
   
   `scol = ... .alias(self._internal.data_spark_column_names[0])`




-- 
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