aboutsummaryrefslogtreecommitdiff
path: root/mllib
diff options
context:
space:
mode:
authorReynold Xin <rxin@databricks.com>2016-12-14 21:22:49 +0100
committerHerman van Hovell <hvanhovell@databricks.com>2016-12-14 21:22:49 +0100
commit5d799473696a15fddd54ec71a93b6f8cb169810c (patch)
tree128a9254f375abfb55340f255b6b18d531921ecf /mllib
parent89ae26dcdb73266fbc3a8b6da9f5dff30dc4ec95 (diff)
downloadspark-5d799473696a15fddd54ec71a93b6f8cb169810c.tar.gz
spark-5d799473696a15fddd54ec71a93b6f8cb169810c.tar.bz2
spark-5d799473696a15fddd54ec71a93b6f8cb169810c.zip
[SPARK-18853][SQL] Project (UnaryNode) is way too aggressive in estimating statistics
## What changes were proposed in this pull request? This patch reduces the default number element estimation for arrays and maps from 100 to 1. The issue with the 100 number is that when nested (e.g. an array of map), 100 * 100 would be used as the default size. This sounds like just an overestimation which doesn't seem that bad (since it is usually better to overestimate than underestimate). However, due to the way we assume the size output for Project (new estimated column size / old estimated column size), this overestimation can become underestimation. It is actually in general in this case safer to assume 1 default element. ## How was this patch tested? This should be covered by existing tests. Author: Reynold Xin <rxin@databricks.com> Closes #16274 from rxin/SPARK-18853.
Diffstat (limited to 'mllib')
0 files changed, 0 insertions, 0 deletions