Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/19570#discussion_r147117297
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala ---
@@ -1753,6 +1753,27 @@ class Dataset[T] private[sql](
*
* Also as standard in SQL, this function resolves columns by position
(not by name).
*
+ * Notice that the column positions in the schema aren't necessarily
matched with the
+ * fields in the typed objects in a Dataset. This function resolves
columns by their positions
+ * in the schema, not the fields in the typed objects:
+ *
+ * {{{
+ * case class Test(a : String, b : String)
--- End diff --
`(a : String, b : String)` -> `(a: String, b: String)` maybe?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]