nealrichardson opened a new pull request, #34576: URL: https://github.com/apache/arrow/pull/34576
### Rationale for this change Fixes #34519. #33770 introduced the bug; I had [asked](https://github.com/apache/arrow/pull/33770/files#r1081612013) in the review why the C++ function wasn't using `FieldsInExpression`. I swapped that in, and the test I added to reproduce the bug now passes. ### What changes are included in this PR? Fix for the C++ function, test in R. ### Are these changes tested? Yes ### Are there any user-facing changes? The behavior observed in the report no longer happens. -- 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]
