[
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: [email protected]
For additional commands, e-mail: [email protected]