betodealmeida / gsheets-db-api

A Python DB-API and SQLAlchemy dialect to Google Spreasheets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle `COUNT(*)` outside of `SELECT`

betodealmeida opened this issue · comments

The CountStar processor should handle more cases, eg:

SELECT
    country
  , COUNT(*)
FROM
    table
WHERE
    name = 'John'
GROUP BY
    country
HAVING
    COUNT(*) > 100

Same for ORDER BY.