GitHub user wangyum opened a pull request:
https://github.com/apache/spark/pull/21189
[SPARK-24117][SQL] Unified the getSizePerRow
## What changes were proposed in this pull request?
This pr unified the `getSizePerRow` because `getSizePerRow` is used in many
places. For example:
1.
[LocalRelation.scala#L80](https://github.com/wangyum/spark/blob/f70f46d1e5bc503e9071707d837df618b7696d32/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/LocalRelation.scala#L80)
2.
[SizeInBytesOnlyStatsPlanVisitor.scala#L36](https://github.com/apache/spark/blob/76b8b840ddc951ee6203f9cccd2c2b9671c1b5e8/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/statsEstimation/SizeInBytesOnlyStatsPlanVisitor.scala#L36)
## How was this patch tested?
Exist tests
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/wangyum/spark SPARK-24117
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21189.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #21189
----
commit cd415381386f0ac5c29cd6dab57ceafc86e96adf
Author: Yuming Wang <yumwang@...>
Date: 2018-04-28T11:10:33Z
Unified the getSizePerRow
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]