Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/21052#discussion_r183685527
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/statsEstimation/FilterEstimation.scala
---
@@ -392,6 +392,10 @@ case class FilterEstimation(plan: Filter) extends
Logging {
val dataType = attr.dataType
var newNdv = ndv
+ if (ndv.toDouble == 0 || colStat.min.isEmpty || colStat.max.isEmpty) {
--- End diff --
why `colStat.min.isEmpty || colStat.max.isEmpty` means empty output? string
type always has no max/min
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]