bkietz commented on a change in pull request #9294: URL: https://github.com/apache/arrow/pull/9294#discussion_r572201225
########## File path: cpp/src/arrow/compute/kernels/scalar_cast_boolean.cc ########## @@ -50,6 +50,7 @@ struct ParseBooleanString { std::vector<std::shared_ptr<CastFunction>> GetBooleanCasts() { auto func = std::make_shared<CastFunction>("cast_boolean", Type::BOOL); AddCommonCasts(Type::BOOL, boolean(), func.get()); + AddZeroCopyCast(Type::BOOL, boolean(), boolean(), func.get()); Review comment: It does require a distinct kernel since the cast kernels are structured so that each implements a single `from_id -> to_id` cast. Perhaps when refactoring cast we can try to make this more efficient ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org