-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-6649: [R] print methods for Array, ChunkedArray, Table, RecordBatch #5492
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
| ) | ||
| ) | ||
| DictionaryType$create <- function(index_type = int32(), | ||
| value_type = utf8(), |
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.
Looks weird to have default values for the type parameters.
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 so, but this is what an R factor type gets translated to, so it seemed reasonable.
r/tests/testthat/test-RecordBatch.R
Outdated
| "$dbl <double>", | ||
| "$lgl <bool>", | ||
| "$chr <string>", | ||
| "$fct <dictionary<values=string, indices=int8, ordered=0>>", |
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.
Just for the record, R doesn't have boolean values? ("ordered=0")
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.
It does, but this is coming straight from the C++ ToString method. I guess I could munge it in R.
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.
I suppose it's fine then.
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.
I added some munging in 02afb89#diff-63df045aa8aff63fdd460b816987ba0dR65-R69
Co-Authored-By: Benjamin Kietzman <[email protected]>
|
Travis passed here: https://travis-ci.org/nealrichardson/arrow/builds/589196708 |
See the readme and the new tests for example output.
This patch also fixes a validation bug in
dictionary(), aliases that toDictionaryType$create, and adds default arguments.