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/09/24 13:14:00 UTC
[jira] [Commented] (SPARK-29178) Improve shown message on sql
show()
[ https://issues.apache.org/jira/browse/SPARK-29178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16936772#comment-16936772 ]
Hyukjin Kwon commented on SPARK-29178:
--------------------------------------
In order to do that it requires to count all records whereas it can only read first 20 rows in the current way. I don't think we should do it.
> Improve shown message on sql show()
> -----------------------------------
>
> Key: SPARK-29178
> URL: https://issues.apache.org/jira/browse/SPARK-29178
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.0.0
> Reporter: Tomoko Komiyama
> Priority: Minor
>
> Add to show total rows with Date Frame table in Dataset.scala(sql/core/src/main/scala/org/apache/spark/sql/).
>
> [ Before ]
> {code:java}
> |2019/8/18| sunny| 27.2|
> |2019/8/19| sunny| 28.6|
> |2019/8/20| rainy| 27.6|
> +---------+-------+-----------+
> only showing top 20 rows
> {code}
>
> [ After ]
> {code:java}
> |2019/8/18| sunny| 27.2|
> |2019/8/19| sunny| 28.6|
> |2019/8/20| rainy| 27.6|
> +---------+-------+-----------+
> only showing top 20 / 31 rows
> {code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org