HyukjinKwon commented on issue #24286: [SPARK-27351][SQL] Wrong outputRows estimation after AggregateEstimation with only null value column URL: https://github.com/apache/spark/pull/24286#issuecomment-495366548 Sorry, I think I rushed to revert. It's 0 as distinct count everywhere for `ColumnStat`. I thought it's definitely a mistake cuz here we use it as 1. https://github.com/apache/spark/blob/239082d9667a4fa4198bd9524d63c739df147e0e/sql/core/src/main/scala/org/apache/spark/sql/execution/command/CommandUtils.scala#L270 https://github.com/apache/spark/blob/b1857a4d7dfe17663f8adccd7825d890ae70d2a1/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/statsEstimation/EstimationUtils.scala#L50-L51 It's a bit late in my time. I will reread it closely tomorrow in KST.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
