Paul McGuire - 2018-03-31

It's a bug! Here is the fixed code, to be released in 2.2.1:

select_core = (SELECT + Optional(DISTINCT | ALL) + Group(delimitedList(result_column))("columns") +
            Optional(FROM + join_source("from*")) +
            Optional(WHERE + expr("where_expr")) +
            Optional(GROUP + BY + Group(delimitedList(ordering_term))("group_by_terms") + 
                    Optional(HAVING + expr("having_expr"))))