dbtsai commented on a change in pull request #27066: [SPARK-31317][SQL] Add 
withField method to Column class
URL: https://github.com/apache/spark/pull/27066#discussion_r401093518
 
 

 ##########
 File path: sql/core/src/main/scala/org/apache/spark/sql/Column.scala
 ##########
 @@ -879,6 +879,17 @@ class Column(val expr: Expression) extends Logging {
    */
   def getItem(key: Any): Column = withExpr { UnresolvedExtractValue(expr, 
Literal(key)) }
 
+  /**
+   * An expression that adds/replaces a field by name in a `StructType`.
+   * If schema contains multiple fields with fieldName, they will all be 
replaced with fieldValue.
+   *
+   * @group expr_ops
+   * @since 3.0.0
 
 Review comment:
   3.1

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to