spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SPARK-22176) Dataset.show(Int.MaxValue) hits integer overflows
Date Sat, 30 Sep 2017 09:30:02 GMT

     [ https://issues.apache.org/jira/browse/SPARK-22176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Apache Spark reassigned SPARK-22176:
------------------------------------

    Assignee: Apache Spark

> Dataset.show(Int.MaxValue) hits integer overflows
> -------------------------------------------------
>
>                 Key: SPARK-22176
>                 URL: https://issues.apache.org/jira/browse/SPARK-22176
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.2.0
>            Reporter: Takeshi Yamamuro
>            Assignee: Apache Spark
>
> scala> Seq((1, 2), (3, 4)).toDF("a", "b").show(Int.MaxValue)
> org.apache.spark.sql.AnalysisException: The limit expression must be equal to or greater
than 0, but got -2147483648;;
> GlobalLimit -2147483648
> +- LocalLimit -2147483648
>    +- Project [_1#27218 AS a#27221, _2#27219 AS b#27222]
>       +- LocalRelation [_1#27218, _2#27219]
>   at org.apache.spark.sql.catalyst.analysis.CheckAnalysis$class.failAnalysis(CheckAnalysis.scala:41)
>   at org.apache.spark.sql.catalyst.analysis.Analyzer.failAnalysis(Analyzer.scala:89)
>   at org.apache.spark.sql.catalyst.analysis.CheckAnalysis$class.org$apache$spark$sql$catalyst$analysis$CheckAnalysis$$checkLimitClause(CheckAnalysis.scala:70)
>   at org.apache.spark.sql.catalyst.analysis.CheckAnalysis$$anonfun$checkAnalysis$1.apply(CheckAnalysis.scala:234)
>   at org.apache.spark.sql.catalyst.analysis.CheckAnalysis$$anonfun$checkAnalysis$1.apply(CheckAnalysis.scala:80)
>   at org.apache.spark.sql.catalyst.trees.TreeNode.foreachUp(TreeNode.scala:127)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message