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 2022/02/22 11:46:00 UTC
[jira] [Commented] (SPARK-38286) check Union's maxRows and maxRowsPerPartition
[ https://issues.apache.org/jira/browse/SPARK-38286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17496041#comment-17496041 ]
Apache Spark commented on SPARK-38286:
--------------------------------------
User 'zhengruifeng' has created a pull request for this issue:
https://github.com/apache/spark/pull/35609
> check Union's maxRows and maxRowsPerPartition
> ---------------------------------------------
>
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org