-
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
Implement value formatting and writing new files in Delimited format. #3528
Conversation
6b8d386
to
e59c554
Compare
ce11d77
to
1a30069
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.
Pushing first set of comments.
std-bits/table/src/main/java/org/enso/table/write/DelimitedWriter.java
Outdated
Show resolved
Hide resolved
std-bits/table/src/main/java/org/enso/table/write/DelimitedWriter.java
Outdated
Show resolved
Hide resolved
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.
Minor points
std-bits/table/src/main/java/org/enso/table/formatting/IntegerFormatter.java
Outdated
Show resolved
Hide resolved
std-bits/table/src/main/java/org/enso/table/formatting/IntegerFormatter.java
Outdated
Show resolved
Hide resolved
|
||
@Override | ||
public boolean canFormat(Object value) { | ||
return value instanceof Double || value instanceof Long; |
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 format Longs?
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.
Good question.
Currently I think this may not be strictly needed, because our Decimal-type column will contain all double
s and a mixed type column will delegate to the AnyObjectFormatter
which will in turn delegate to IntegerFormatter
for Longs. But theoretically if we had a mixed-storage column containing Longs and Doubles, and such a column had the DecimalFormatter
selected - this functionality could be of use.
However, since currently it's not actively used it may be unnecessary to maintain it this way indeed. I can remove it.
TODO: fix null handling
b1534f9
to
2d4537f
Compare
Pull Request Description
Implements https://www.pivotaltracker.com/story/show/182309429 and https://www.pivotaltracker.com/story/show/182309573
Important Notes
Checklist
Please include the following checklist in your PR:
Scala,
Java,
and
Rust
style guides.
./run ide dist
and./run ide watch
.