Also fix various issues noticed as part of ARROW-17661
Reporter: David Li / @lidavidm
Assignee: David Li / @lidavidm
PRs and other links:
Note: This issue was originally created as ARROW-17867. Please see the migration documentation for further details.