-
Notifications
You must be signed in to change notification settings - Fork 40
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
Implement ViewBinaryViewArrayAsBytes #709
Conversation
9e3d004
to
bbcea42
Compare
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.
Two comments for consideration. Thank you!
EXPECT_EQ(slot, expected[i]); | ||
} | ||
++i; | ||
} |
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.
Should you increment the offset here and test again to make sure the offset is applied correctly? (I'm always paranoid that something isn't taking into account an offset 🙂 )
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.
Nice idea - added some parametrization for that
@@ -234,6 +234,60 @@ class ViewArrayAsBytes { | |||
value_type operator[](int64_t i) const { return range_.get(i); } | |||
}; | |||
|
|||
class ViewBinaryViewArrayAsBytes { |
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.
Should this be ViewBinaryArray*View*AsBytes
?
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.
I don't think so (?) Following the pattern of the other classes, they are all ArrayAs...
even though they accept an array view in the constructor
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.
Got it!
Thanks @paleolimbot for the review |
Closes #633