Hi there I think the group by clause is only enforced when more than one result is returned. Surely this is a grammar issue, regardless of the data returned?
For this (malformed) query, the group by is missing, but still the query runs returning one result: *select state, count(state) from receipt where ingestion_timestamp > '2019-04-10 11:14:00'* If I change the predicate so that more results are returned, the engine complains: *select state, count(state) from receipt where ingestion_timestamp <= '2019-04-10 11:14:00'* My issue is that this group by should have been enforced at all times, not just when it's needed for multi-row return. *select state, count(state) from receipt where ingestion_timestamp <= '2019-04-10 11:14:00' group by state* Please confirm this is a bug. Thanks Rich -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/d/optout.
