[SPARK-5287][SQL] Add defaultSizeOf to every data type.#4081
[SPARK-5287][SQL] Add defaultSizeOf to every data type.#4081yhuai wants to merge 4 commits intoapache:masterfrom yhuai:SPARK-5287
Conversation
|
Test build #25687 has started for PR 4081 at commit
|
|
Test build #25687 has finished for PR 4081 at commit
|
|
Test PASSed. |
|
How come we don't want it for all data types? |
|
Yeah, will this still fail for limits with struct types for example? |
|
I'd say we can just put a defaultSize method to datatype trait, and then implement it for all data types. |
|
For now, it will not fail since we will check if the data type is a NativeType before calling defaultSize. I thought we will implement it for all types when we remove I can move |
|
A of a or the reader t AD
|
|
Sorry @jesman what did you mean? |
|
Test build #25829 has started for PR 4081 at commit
|
|
Test build #25829 has finished for PR 4081 at commit
|
|
Test PASSed. |
|
Test build #25836 has started for PR 4081 at commit
|
|
Test build #25836 has finished for PR 4081 at commit
|
|
Test PASSed. |
JIRA: https://issues.apache.org/jira/browse/SPARK-5287 This PR only add `defaultSizeOf` to data types and make those internal type classes `protected[sql]`. I will use another PR to cleanup the type hierarchy of data types. Author: Yin Huai <yhuai@databricks.com> Closes apache#4081 from yhuai/SPARK-5287 and squashes the following commits: 90cec75 [Yin Huai] Update unit test. e1c600c [Yin Huai] Make internal classes protected[sql]. 7eaba68 [Yin Huai] Add `defaultSize` method to data types. fd425e0 [Yin Huai] Add all native types to NativeType.defaultSizeOf.
JIRA: https://issues.apache.org/jira/browse/SPARK-5287
This PR only add
defaultSizeOfto data types and make those internal type classesprotected[sql]. I will use another PR to cleanup the type hierarchy of data types.