-
- Downloads
[SPARK-14838] [SQL] Set default size for ObjecType to avoid failure when...
[SPARK-14838] [SQL] Set default size for ObjecType to avoid failure when estimating sizeInBytes in ObjectProducer ## What changes were proposed in this pull request? We have logical plans that produce domain objects which are `ObjectType`. As we can't estimate the size of `ObjectType`, we throw an `UnsupportedOperationException` if trying to do that. We should set a default size for `ObjectType` to avoid this failure. ## How was this patch tested? `DatasetSuite`. Author: Liang-Chi Hsieh <simonh@tw.ibm.com> Closes #12599 from viirya/skip-broadcast-objectproducer.
Showing
- sql/catalyst/src/main/scala/org/apache/spark/sql/types/ObjectType.scala 1 addition, 2 deletions...rc/main/scala/org/apache/spark/sql/types/ObjectType.scala
- sql/core/src/test/scala/org/apache/spark/sql/DatasetSuite.scala 23 additions, 0 deletions...re/src/test/scala/org/apache/spark/sql/DatasetSuite.scala
Please register or sign in to comment