Skip to content

Conversation

@yhuai
Copy link
Contributor

@yhuai yhuai commented Jan 16, 2015

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.

@SparkQA
Copy link

SparkQA commented Jan 16, 2015

Test build #25687 has started for PR 4081 at commit 64bb05d.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Jan 17, 2015

Test build #25687 has finished for PR 4081 at commit 64bb05d.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/25687/
Test PASSed.

@rxin
Copy link
Contributor

rxin commented Jan 17, 2015

How come we don't want it for all data types?

@marmbrus
Copy link
Contributor

Yeah, will this still fail for limits with struct types for example?

@rxin
Copy link
Contributor

rxin commented Jan 19, 2015

I'd say we can just put a defaultSize method to datatype trait, and then implement it for all data types.

@yhuai
Copy link
Contributor Author

yhuai commented Jan 19, 2015

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 NativeType.

I can move defaultSize to datatype trait in this PR.

@jesman
Copy link

jesman commented Jan 19, 2015

A of a or the reader t AD
On 2015-01-16 6:22 PM, "Yin Huai" [email protected] wrote:

JIRA: https://issues.apache.org/jira/browse/SPARK-5287

You can view, comment on, or merge this pull request online at:

#4081
Commit Summary

  • Add all native types to NativeType.defaultSizeOf.

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#4081.

@rxin
Copy link
Contributor

rxin commented Jan 19, 2015

Sorry @jesman what did you mean?

@yhuai yhuai changed the title [SPARK-5287][SQL] NativeType.defaultSizeOf should have default sizes of all NativeTypes. [SPARK-5287][SQL] Add defaultSizeOf to every data type. Jan 20, 2015
@SparkQA
Copy link

SparkQA commented Jan 20, 2015

Test build #25829 has started for PR 4081 at commit e1c600c.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Jan 20, 2015

Test build #25829 has finished for PR 4081 at commit e1c600c.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • protected[sql] trait PrimitiveType extends DataType
    • protected[sql] abstract class NativeType extends DataType
    • protected[sql] abstract class NumericType extends NativeType with PrimitiveType
    • protected[sql] sealed abstract class IntegralType extends NumericType
    • protected[sql] sealed abstract class FractionalType extends NumericType

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/25829/
Test PASSed.

@SparkQA
Copy link

SparkQA commented Jan 20, 2015

Test build #25836 has started for PR 4081 at commit 90cec75.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Jan 20, 2015

Test build #25836 has finished for PR 4081 at commit 90cec75.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • protected[sql] trait PrimitiveType extends DataType
    • protected[sql] abstract class NativeType extends DataType
    • protected[sql] abstract class NumericType extends NativeType with PrimitiveType
    • protected[sql] sealed abstract class IntegralType extends NumericType
    • protected[sql] sealed abstract class FractionalType extends NumericType

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/25836/
Test PASSed.

@asfgit asfgit closed this in bc20a52 Jan 20, 2015
bomeng pushed a commit to Huawei-Spark/spark that referenced this pull request Jan 21, 2015
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 <[email protected]>

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.
@yhuai yhuai deleted the SPARK-5287 branch February 11, 2015 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants