You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Daniel Shields (JIRA)" <ji...@apache.org> on 2016/09/07 17:00:27 UTC

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

Daniel Shields created SPARK-17435:
--------------------------------------

             Summary: 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


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
(v6.3.4#6332)

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