Backport PR #38982 on branch 1.2.x (REGR: Bug fix for ExtensionArray groupby aggregation on non-numeric types)
Backport PR #38982: REGR: Bug fix for ExtensionArray groupby aggregation on non-numeric types