Moohan commented on issue #36658:
URL: https://github.com/apache/arrow/issues/36658#issuecomment-1633981646
> Hi @Moohan, my tidy eval brain is not fully fired up today, so I don't
have a detailed explanation of why this works, but if I rewrite your function
like this:
>
> ```
> custom_read <- function(path, col_select) {
> read_parquet(path, col_select = !!col_select)
> }
> ```
>
> things work as expected. Does this solve the problem for you?
Yep, that seems to fix things for me and is a much neater workaround than
what I was currently using, which is basically this:
```R
if (is.null(col_select)) {
read_parquet(path)
} else {
read_parquet(path, col_select = col_select)
}
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]