You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2022/02/24 02:56:00 UTC

[jira] [Assigned] (SPARK-38286) Union's maxRows and maxRowsPerPartition may overflow

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

Wenchen Fan reassigned SPARK-38286:
-----------------------------------

    Assignee: zhengruifeng

> Union's maxRows and maxRowsPerPartition may overflow
> ----------------------------------------------------
>
>                 Key: SPARK-38286
>                 URL: https://issues.apache.org/jira/browse/SPARK-38286
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.0.3, 3.1.2, 3.2.1, 3.3.0
>            Reporter: zhengruifeng
>            Assignee: zhengruifeng
>            Priority: Major
>
> {code:java}
> scala> val df1 = spark.range(0, Long.MaxValue, 1, 1)
> df1: org.apache.spark.sql.Dataset[Long] = [id: bigint]
> scala> val df2 = spark.range(0, 100, 1, 10)
> df2: org.apache.spark.sql.Dataset[Long] = [id: bigint]
> scala> val union = df1.union(df2)
> union: org.apache.spark.sql.Dataset[Long] = [id: bigint]
> scala> union.queryExecution.logical.maxRowsPerPartition
> res19: Option[Long] = Some(-9223372036854775799)
> scala> union.queryExecution.logical.maxRows
> res20: Option[Long] = Some(-9223372036854775709)
>  {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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