See https://github.com/apache/spark/pull/16430#discussion_r95040478
getRowSize is mostly untested.
[Github] Pull Request #16551 (wzhfy)