Hi Jack,

You are looking at the wrong place. count(<columnName>) is a native
function. There nothing specific for it in the parser syntax.

Benjamin


On Mon, Apr 18, 2016 at 3:50 PM, Jack Krupansky <jack.krupan...@gmail.com>
wrote:

> The CQL spec for COUNT says:
>
> "It also can be used to count the non null value of a given column.
> Example:
>
> SELECT COUNT(scores) FROM plays;"
>
> But, the parser only recognizes COUNT(*) and COUNT(1).
>
> See:
> https://cassandra.apache.org/doc/cql3/CQL-3.0.html
> https://github.com/apache/cassandra/blob/trunk/src/antlr/Parser.g#L276
>
> Does this need a Jira, or can somebody just fix it to avoid the paperwork?
>
> Or, was this actually supposed to  work and the bug is some missing
> implementation?
>
> Thanks.
>
> -- Jack Krupansky
>

Reply via email to