-
Notifications
You must be signed in to change notification settings - Fork 335
Storing LocalDate in off-heap IntBuffer
#14652
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
Conversation
jdunkerley
left a comment
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.
A few nits but looks clearer than inside the Typed ones
std-bits/table/src/main/java/org/enso/table/data/column/builder/Builder.java
Outdated
Show resolved
Hide resolved
std-bits/table/src/main/java/org/enso/table/data/column/builder/DateBuilder.java
Outdated
Show resolved
Hide resolved
|
|
||
| @Override | ||
| public Builder retypeTo(StorageType<?> type) { | ||
| if (allowDateToDateTimeConversion && Objects.equals(type, DateTimeType.INSTANCE)) { |
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.
Nit but would invert the if and throw with the body not surrounded anymore
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.
body not surrounded anymore
- that's a bit less FP style
- but I often prefer it as well
std-bits/table/src/main/java/org/enso/table/data/column/builder/DateBuilder.java
Show resolved
Hide resolved
Co-authored-by: James Dunkerley <[email protected]>
Co-authored-by: James Dunkerley <[email protected]>
9347dca to
9e23b5e
Compare
Pull Request Description
LocalDateacross JVMs #14632DateBuilderto have its ownDateStorageTypedStoragewith its inefficient heap based dataLocalData.toEpochDayintoIntBufferin expected Arrow formatImportant Notes
NumberBuildertoValidityBuilderBitMapChecklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Java,