HyukjinKwon commented on a change in pull request #33853: URL: https://github.com/apache/spark/pull/33853#discussion_r697084219
########## File path: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala ########## @@ -2491,6 +2502,16 @@ class Dataset[T] private[sql]( } } + /** + * Returns a new Dataset by updating an exisitng column with metadata. + * + * @group untypedrel + * @since 3.3.0 + */ + def withMetadata(existingColumnName: String, metadata: Metadata): DataFrame = { + withColumn(existingColumnName, col(existingColumnName), metadata) Review comment: I wouldn't add this one. This can be easily done in app side. -- 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-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org