You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:21:22 UTC

[jira] [Updated] (SPARK-17435) RowEncoder should be documented and publicly accessable

     [ https://issues.apache.org/jira/browse/SPARK-17435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon updated SPARK-17435:
---------------------------------
    Labels: bulk-closed  (was: )

> RowEncoder should be documented and publicly accessable
> -------------------------------------------------------
>
>                 Key: SPARK-17435
>                 URL: https://issues.apache.org/jira/browse/SPARK-17435
>             Project: Spark
>          Issue Type: Improvement
>            Reporter: Daniel Shields
>            Priority: Major
>              Labels: bulk-closed
>
> The object org.apache.spark.sql.catalyst.encoders.RowEncoder is critical when constructing a Dataset that is not Dataset[Row] but still has Row in its type.  For example, consider the following:
> df.map(row => (row.getInt(0), row))(Encoders.tuple(Encoders.scalaInt, RowEncoder(df.schema))
> Alternatively, there could be a way to get the Encoder from Dataset directly; it's unclear why 'encoder' isn't a member of Dataset.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org