-
Notifications
You must be signed in to change notification settings - Fork 758
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
Question: Why are there 3 types of OffsetSizeTrait
s?
#1638
Comments
I don't see an obvious reason why they need to be separate traits, especially given that Perhaps @alamb or @jorgecarleitao remember some context of why these are the way they are? |
They pre-date my time with the project. Maybe @nevi-me or @andygrove or @paddyhoran have some memories or context to share |
I introduced them. At the time BinaryArray, LargeBinaryArray, StringArray and LargeStringArray were 4 different structs. The |
So I guess we can simplify the code by just reserving one |
Close this issue as #1645 has been merged! Thank you for your all opinions! |
Which part is this question about
In our code, there are 3 different
OffsetSizeTrait
:OffsetSizeTrait
,BinaryOffsetSizeTrait
andStringOffsetSizeTrait
. The only difference between them is thatBinaryOffsetSizeTrait
andStringOffsetSizeTrait
have a constdataType
.My questions are:
dataType
as a const?OffsetSizeTrait
and get thedataType
like this:The text was updated successfully, but these errors were encountered: