Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARROW-212: Change contract of PrimitiveArray to reflect its abstractness #87

Closed
wants to merge 1 commit into from

Conversation

emkornfield
Copy link
Contributor

Follow-up based on #80

BooleanArray(int32_t length, const std::shared_ptr<Buffer>& data,
int32_t null_count = 0, const std::shared_ptr<Buffer>& null_bitmap = nullptr);
BooleanArray(const TypePtr& type, int32_t length, const std::shared_ptr<Buffer>& data,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the benefit of passing a TypePtr? This array should always have the same type?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory it could have a different logical type (I can't think of a great example for boolean types). I'm also including it here because we still haven't established if we want to be very pedantic about not doing operations that could fail with bad_alloc (especially in constructors).

Its a slightly bigger change but I can remove the requirement for passing this type and the the other ones on primitive. I don't have a strong preference here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, forgot that logical types are part of the TypePtr

@xhochy
Copy link
Member

xhochy commented Jun 7, 2016

+1, LGTM

@wesm
Copy link
Member

wesm commented Jun 8, 2016

+1

@asfgit asfgit closed this in 8197f24 Jun 8, 2016
@emkornfield emkornfield deleted the emk_clarify_primitive branch August 21, 2016 05:27
wesm pushed a commit to wesm/arrow that referenced this pull request Sep 2, 2018
Depends on apache#86

Author: Uwe L. Korn <uwelk@xhochy.com>

Closes apache#87 from xhochy/parquet-583 and squashes the following commits:

9f3f050 [Uwe L. Korn] Incoperate feedback
86aed44 [Uwe L. Korn] PARQUET-583: Parquet to Thrift schema conversion
wesm pushed a commit to wesm/arrow that referenced this pull request Sep 4, 2018
Depends on apache#86

Author: Uwe L. Korn <uwelk@xhochy.com>

Closes apache#87 from xhochy/parquet-583 and squashes the following commits:

9f3f050 [Uwe L. Korn] Incoperate feedback
86aed44 [Uwe L. Korn] PARQUET-583: Parquet to Thrift schema conversion

Change-Id: I0b255221ad1c5f47db6842b0141da27dd649ff8e
wesm pushed a commit to wesm/arrow that referenced this pull request Sep 6, 2018
Depends on apache#86

Author: Uwe L. Korn <uwelk@xhochy.com>

Closes apache#87 from xhochy/parquet-583 and squashes the following commits:

9f3f050 [Uwe L. Korn] Incoperate feedback
86aed44 [Uwe L. Korn] PARQUET-583: Parquet to Thrift schema conversion

Change-Id: I0b255221ad1c5f47db6842b0141da27dd649ff8e
wesm pushed a commit to wesm/arrow that referenced this pull request Sep 7, 2018
Depends on apache#86

Author: Uwe L. Korn <uwelk@xhochy.com>

Closes apache#87 from xhochy/parquet-583 and squashes the following commits:

9f3f050 [Uwe L. Korn] Incoperate feedback
86aed44 [Uwe L. Korn] PARQUET-583: Parquet to Thrift schema conversion

Change-Id: I0b255221ad1c5f47db6842b0141da27dd649ff8e
wesm pushed a commit to wesm/arrow that referenced this pull request Sep 8, 2018
Depends on apache#86

Author: Uwe L. Korn <uwelk@xhochy.com>

Closes apache#87 from xhochy/parquet-583 and squashes the following commits:

9f3f050 [Uwe L. Korn] Incoperate feedback
86aed44 [Uwe L. Korn] PARQUET-583: Parquet to Thrift schema conversion

Change-Id: I0b255221ad1c5f47db6842b0141da27dd649ff8e
xuechendi pushed a commit to xuechendi/arrow that referenced this pull request Aug 19, 2020
rafael-telles pushed a commit to rafael-telles/arrow that referenced this pull request Aug 20, 2021
FlightSQL Ratification based on Community Comments (round 4)
zhztheplayer added a commit to zhztheplayer/arrow-1 that referenced this pull request Mar 11, 2022
rui-mo pushed a commit to rui-mo/arrow-1 that referenced this pull request Mar 23, 2022
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.

3 participants