-
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-67: C++ metadata flatbuffer serialization and data movement to memory maps #28
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,8 +60,8 @@ class Array { | |
return nulls_; | ||
} | ||
|
||
bool Equals(const Array& arr) const; | ||
virtual bool Equals(const std::shared_ptr<Array>& arr) const; | ||
bool EqualsExact(const Array& arr) const; | ||
virtual bool Equals(const std::shared_ptr<Array>& arr) const = 0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Clang revealed that this (plus the downstream PrimitiveArrayImpl templates) was causing some bad behavior, so we can review in the future how to have the cleanest code for the proliferation of array containers while avoiding unwanted template instantiation (I admit I don't know enough about this to make a judgment |
||
|
||
protected: | ||
TypePtr 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.
is there any reason you aren't comparing length here as well? I suppose its subsumed by the nulls_ check when there are nulls, but what happens if there aren't? I suppose we would expect classes that inherit from array to check it as well. In either case, it might be worth documenting that this is intentional if it is.
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.
An oversight. I will correct this and address the below comments, too