Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The current method for estimating row count in text files is to divide the size of the file in bytes by 1024. This row count estimate is used by optimizer to decide if BroadcastExchange should be used.
This results in massive memory consumption when using BroadCast exchange on a large table.
We need a better way of estimating row count, or use a different metric when deciding to use BroadcastExchange.