[ https://issues.apache.org/jira/browse/SPARK-33956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17257279#comment-17257279 ]
Apache Spark commented on SPARK-33956: -------------------------------------- User 'wangyum' has created a pull request for this issue: https://github.com/apache/spark/pull/30989 > Add rowCount for Range operator > ------------------------------- > > Key: SPARK-33956 > URL: https://issues.apache.org/jira/browse/SPARK-33956 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 3.2.0 > Reporter: Yuming Wang > Priority: Major > > {code:scala} > spark.sql("set spark.sql.cbo.enabled=true") > spark.sql("select id from range(100)").explain("cost") > {code} > Current: > {noformat} > == Optimized Logical Plan == > Range (0, 100, step=1, splits=None), Statistics(sizeInBytes=800.0 B) > {noformat} > Expected: > {noformat} > == Optimized Logical Plan == > Range (0, 100, step=1, splits=None), Statistics(sizeInBytes=800.0 B, > rowCount=100) > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org