You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/01/15 10:24:39 UTC
[jira] [Commented] (SPARK-11408) Display scientific notation
properly in DataFrame.show()
[ https://issues.apache.org/jira/browse/SPARK-11408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15101534#comment-15101534 ]
Apache Spark commented on SPARK-11408:
--------------------------------------
User 'pravingadakh' has created a pull request for this issue:
https://github.com/apache/spark/pull/9376
> Display scientific notation properly in DataFrame.show()
> --------------------------------------------------------
>
> Key: SPARK-11408
> URL: https://issues.apache.org/jira/browse/SPARK-11408
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 1.5.1, 1.6.0
> Reporter: Xiangrui Meng
>
> {code}
> scala> sqlContext.range(2).select(col("id") / 3e5).show()
> +--------------------+
> | (id / 300000.0)|
> +--------------------+
> | 0.0|
> |3.333333333333333...|
> +--------------------+
> {code}
> The exponential term is omitted, which is error-prone. We should format the numbers properly based on column width.
--
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