[ https://issues.apache.org/jira/browse/SPARK-38286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
zhengruifeng updated SPARK-38286: --------------------------------- Summary: Union's maxRows and maxRowsPerPartition may overflow (was: check Union's maxRows and maxRowsPerPartition) > 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 > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org