Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/19229#discussion_r141976671
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala ---
@@ -2102,6 +2102,55 @@ class Dataset[T] private[sql](
}
/**
+ * Returns a new Dataset by adding columns or replacing the existing
columns that has
+ * the same names.
+ */
+ private[spark] def withColumns(colNames: Seq[String], cols:
Seq[Column]): DataFrame = {
--- End diff --
I still think we should do it to avoid duplicate codes.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]