factor out assert_all_white_list
assert white list on group_by
document use of white list in group_by