Skip to content

Conversation

@nealrichardson
Copy link
Member

See the readme and the new tests for example output.

This patch also fixes a validation bug in dictionary(), aliases that to DictionaryType$create, and adds default arguments.

)
)
DictionaryType$create <- function(index_type = int32(),
value_type = utf8(),
Copy link
Member

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.

Copy link
Member Author

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.

"$dbl <double>",
"$lgl <bool>",
"$chr <string>",
"$fct <dictionary<values=string, indices=int8, ordered=0>>",
Copy link
Member

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")

Copy link
Member Author

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.

Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nealrichardson
Copy link
Member Author

nealrichardson commented Sep 25, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants