-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Conversation
… apparent fromt the contract
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, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
+1, LGTM |
+1 |
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
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
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
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
FlightSQL Ratification based on Community Comments (round 4)
Follow-up based on #80