Currently the width, if truncation is performed, is hardcoded to be
20 characters.

I wonder if capability for user to specify the width should be added.

If so, I can send a PR.

Cheers

On Sun, Nov 22, 2015 at 1:39 AM, Jagrut Sharma <jagrutsha...@gmail.com>
wrote:

> Since version 1.5.0, show(false) on a DataFrame prevents truncation of
> long strings in the output. By default, strings more than 20 characters are
> truncated.
>
> Example usage:
> scala> df.show(false)
>
> --
> Jagrut
>
>
> On Sat, Nov 21, 2015 at 6:24 AM, Fengdong Yu <fengdo...@everstring.com>
> wrote:
>
>> Hi,
>>
>> I found if the column value is too long, spark shell only show a partial
>> result.
>>
>> such as:
>>
>> sqlContext.sql("select url from tableAā€¯).show(10)
>>
>> it cannot show the whole URL here. so how to adjust it?  Thanks
>>
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
>> For additional commands, e-mail: user-h...@spark.apache.org
>>
>

Reply via email to