-
Notifications
You must be signed in to change notification settings - Fork 707
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
Improve the display of interval types #5914
Labels
Comments
alamb
added
the
enhancement
Any new improvement worthy of a entry in the changelog
label
Jun 18, 2024
Have finished the basic codes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Today if an interval like
-3 MONTH
is parsed into anIntervalArray
and then displayed using https://docs.rs/arrow/latest/arrow/util/display/fn.array_value_to_string.html the output is correct but overly verbose:Describe the solution you'd like
It would be nice if the displayed version was closer to the original input and did not print out fields with 0 values explicitly. For the example above, it would be great to look more like
Describe alternatives you've considered
@goldmedal implemented some version of this code as part of a DataFusion PR here
apache/datafusion@9ae676c that might be a reasonable implementation to start from:
Any real representation should avoid allocating
vec![]
and strings (viaformat!
)And
Additional context
The text was updated successfully, but these errors were encountered: