+ some additional testing, refactoring **Reporter**: [Daniël Heres](https://issues.apache.org/jira/browse/ARROW-11439) / @Dandandan **Assignee**: [Daniël Heres](https://issues.apache.org/jira/browse/ARROW-11439) / @Dandandan #### PRs and other links: - [GitHub Pull Request #9374](https://github.com/apache/arrow/pull/9374) <sub>**Note**: *This issue was originally created as [ARROW-11439](https://issues.apache.org/jira/browse/ARROW-11439). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*</sub>