final class AggregateResults
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql". Code outside that scope must not name this declaration.

The result of an aggregate function with one argument, COUNT(*) or COUNT(DISTINCT ...).

Rule: MYSQL-AGGREGATE-RESULT-001. COUNT is a BIGINT and never NULL. SUM and AVG of an exact number (an integer, DECIMAL, YEAR or BIT) are DECIMAL, of anything else DOUBLE. MIN and MAX have the type of their argument. The BIT_AND, BIT_OR and BIT_XOR of a binary string are a binary string, of anything else a BIGINT UNSIGNED; they are never NULL. STD, VARIANCE, STDDEV_SAMP and VAR_SAMP are DOUBLE, JSON_ARRAYAGG is JSON, ST_COLLECT a geometry. Every other aggregate is NULL for a group without non-NULL values. DISTINCT in a windowed aggregate is not supported by the server (ER_NOT_SUPPORTED_YET). Terminates: a fixed number of tests on one call. Source: https://dev.mysql.com/doc/refman/8.4/en/aggregate-functions.html, https://dev.mysql.com/doc/refman/8.4/en/bit-functions.html#function_bit-and, https://dev.mysql.com/doc/refman/8.4/en/window-function-restrictions.html. Status: Implemented.

Methods§

public function aggregate(
    Aggregate $call,
    list<ScalarFact> $arguments,
    Derivation $derivation,
): ScalarFact

Answers the facts of an aggregate call and reports what the server rejects.

Parameters

$callAggregate
$argumentslist<ScalarFact>
$derivationDerivation

Returns

Test cases 2
Called from 1
Calls 30

Test cases 4§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 4

Relations§

Instantiated in 1
Method calls 1