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

Tells whether a query block aggregates its rows.

Rule: MYSQL-AGGREGATE-QUERY-001. A query block aggregates when one of the given parts holds a set function written without OVER outside any nested query. Such a block without GROUP BY returns one row, also over no input rows, so every input column it reads there can be NULL. Terminates: the walk follows the finite structure and does not enter nested queries. Source: https://dev.mysql.com/doc/refman/8.4/en/aggregate-functions.html ("If you use an aggregate function in a statement containing no GROUP BY

  • clause, it is equivalent to grouping on all rows"),

https://dev.mysql.com/doc/refman/8.4/en/group-by-handling.html. Status: Implemented.

Methods§

public function aggregates(list<object> $parts): bool

Tells whether a set function aggregates in one of the parts, outside nested queries.

Parameters

$partslist<object>The structure values to search

Returns

bool
Test cases 1
Called from 1
Calls 6

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 1
Method calls 1