spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Armbrust <mich...@databricks.com>
Subject Re: calling dataset.show on a custom object - displays toString() value as first column and blank for rest
Date Sun, 31 Jul 2016 19:59:58 GMT
Can you share you code?  This does not happen for me
<https://databricks-prod-cloudfront.cloud.databricks.com/public/4027ec902e239c93eaaa8714f173bcfc/1023043053387187/3844103335236511/2840265927289860/latest.html>
.

On Sun, Jul 31, 2016 at 7:16 AM, Rohit Chaddha <rohitchaddha1234@gmail.com>
wrote:

> I have a custom object called A and corresponding Dataset<A>
>
> when I call datasetA.show() method i get the following
>
> +--------------------+----+-----+---------+-------+
> |                        id|da|like|values|uid|
> +--------------------+----+-----+---------+-------+
> |A.toString()...|
> |A.toString()...|
> |A.toString()...|
> |A.toString()...|
> |A.toString()...|
> |A.toString()...|
>
> that is A.toString() is called and displayed as value of the first column
> and rest all columns are blank
>
> Any suggestions what should be done to fix this ?
>
> - Rohit
>

Mime
View raw message