v.22.9Bug Fix

Make GROUPING Function Consistent with SQL and Other DBMS

Make the result of GROUPING function the same as in SQL and other DBMS. #40762 (Dmitry Novik).