-
Notifications
You must be signed in to change notification settings - Fork 323
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
Add storage support for Date, Time and DateTime to InMemory table #3673
Add storage support for Date, Time and DateTime to InMemory table #3673
Conversation
d1fcc89
to
9b542d6
Compare
ba7fba2
to
59c8652
Compare
59c8652
to
a37f2f5
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.
Few minor things but looks good
distribution/lib/Standard/Table/0.0.0-dev/src/Data/Data_Formatter.enso
Outdated
Show resolved
Hide resolved
import org.enso.table.data.column.storage.StringStorage; | ||
|
||
/** A column builder appending all the values passed to it in an unchanged form. */ | ||
public class StringStorageBuilder extends StorageBuilder { | ||
|
||
private Object[] data; | ||
private String[] 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.
Is us doing this better than just using an ArrayList<T>
feels like we are doing this for little gain once especially we have the new polyglot arrays
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.
Hmm, well, to some extent. I'd argue that our implementation is still more specialized. It avoids copying (whereas ArrayList<T>::toArray
would copy IIRC. And it has the retype logic which we would still need to add.
So I'd be for keeping it as-is, although you are right that there is quite a lot of similarity.
std-bits/table/src/main/java/org/enso/table/data/column/builder/object/InferredBuilder.java
Outdated
Show resolved
Hide resolved
std-bits/table/src/main/java/org/enso/table/data/column/builder/object/TimeOfDayBuilder.java
Outdated
Show resolved
Hide resolved
WIP: somehow use_first_row_as_names broke
a37f2f5
to
6923e4c
Compare
Pull Request Description
Implements https://www.pivotaltracker.com/story/show/183080911
Important Notes
Checklist
Please include the following checklist in your PR:
Scala,
Java,
and
Rust
style guides.
./run ide build
and./run ide watch
.