Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/17819#discussion_r139729964
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala ---
@@ -2102,6 +2102,53 @@ 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 --
This is also copied to #19229.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]