-
Notifications
You must be signed in to change notification settings - Fork 786
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
Pretty Print UnionArray
s
#1648
Pretty Print UnionArray
s
#1648
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1648 +/- ##
==========================================
+ Coverage 83.08% 83.09% +0.01%
==========================================
Files 193 193
Lines 55778 55858 +80
==========================================
+ Hits 46343 46416 +73
- Misses 9435 9442 +7
Continue to review full report at Codecov.
|
builder.append::<Int32Type>("b", 1).unwrap(); | ||
builder.append::<Float64Type>("c", 3.2234).unwrap(); | ||
builder.append_null::<Float64Type>("c").unwrap(); | ||
builder.append_null::<Int32Type>("b").unwrap(); |
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.
Can you let outer show one null value from inner UnionArray too?
arrow/src/util/display.rs
Outdated
"Repl error: could not get field for the corresponding type in union array." | ||
.to_string(), |
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.
Maybe have type_id
in error string?
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.
This looks good. Thanks @tfeda !
Which issue does this PR close?
Closes #1594 .
Rationale for this change
What changes are included in this PR?
Pretty printing support for
UnionArray
. My first stab is based on how they look in the specification, but I can change it according to any suggestions:Example:
Are there any user-facing changes?