Skip to content

Commit

Permalink
[SPARK-22862] Docs on lazy elimination of columns missing from an enc…
Browse files Browse the repository at this point in the history
…oder

This behavior has confused some users, so lets clarify it.

Author: Michael Armbrust <[email protected]>

Closes #20048 from marmbrus/datasetAsDocs.

(cherry picked from commit 8df1da3)
Signed-off-by: gatorsmile <[email protected]>
  • Loading branch information
marmbrus authored and gatorsmile committed Dec 22, 2017
1 parent 0f68621 commit 1df8020
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,10 @@ class Dataset[T] private[sql](
* If the schema of the Dataset does not match the desired `U` type, you can use `select`
* along with `alias` or `as` to rearrange or rename as required.
*
* Note that `as[]` only changes the view of the data that is passed into typed operations,
* such as `map()`, and does not eagerly project away any columns that are not present in
* the specified class.
*
* @group basic
* @since 1.6.0
*/
Expand Down

0 comments on commit 1df8020

Please sign in to comment.