No, I didn't test, I was just reading the code, but I hadn't checked for
all occurrences of K_COUNT, so I hadn't noticed that it also occurs in the
allowedFunctionName grammar production rule. And I found the code that
dynamically creates a count function for each type here:
https://github.com/apac
Hi Jack,
You are looking at the wrong place. count() 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
wrote:
> The CQL spec for COUNT says:
>
> "It also can be used to count the non null value of a given column.
May be I misunderstood you.
Do you mean that you tested it and that it is not working on the version
you used?
On Mon, Apr 18, 2016 at 3:50 PM, Jack Krupansky
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
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/tru