nikostr commented on issue #41959:
URL: https://github.com/apache/arrow/issues/41959#issuecomment-2148119846
I found the following hacky work-around to get the columns as the right type:
```
register_scalar_function(
'bool_to_int',
function(context, bool_var) {
if_else(bool_var, 1, 0)
},
in_type = schema(bool_var=bool()),
out_type = uint8(),
auto_convert = TRUE
)
```
Using this I manage to use `across` to change the type of the columns, which
in turn allowed me to use the Reduce function above to count the number of
zero-value columns for each row.
--
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]