classWindowResults
final class WindowResults
The result of a function that is only a window function.
Rule: MYSQL-WINDOW-RESULT-001. ROW_NUMBER, RANK, DENSE_RANK and NTILE are BIGINT UNSIGNED, CUME_DIST and PERCENT_RANK DOUBLE; none of them is NULL. LEAD and LAG have the aggregated type of the value and the default (MYSQL-TYPE-AGGREGATION-001); FIRST_VALUE, LAST_VALUE and NTH_VALUE the type of the value; each is NULL when the row is outside the frame or partition. IGNORE NULLS and FROM LAST are rejected 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/window-function-descriptions.html. Status: Implemented.
Methods§
public function result(
WindowFunction $call,
list<ScalarFact> $arguments,
Derivation $derivation,
): ScalarFactAnswers the facts of a window function call and reports what the server rejects.
Parameters
$call | WindowFunction | |
$arguments | list<ScalarFact> | |
$derivation | Derivation |
Returns
Test cases 2
Called from 1
Calls 26
- class-const NullTreatment::Ignore() line 44
- method-call Derivation::report() line 45
- new UnsupportedWindowing line 45
- class-const WindowingLimit::IgnoreNulls() line 45
- class-const CountingEdge::Last() line 47
- class-const WindowingLimit::FromLast() line 48
- class-const WindowFunctionKind::RowNumber() line 52
- class-const WindowFunctionKind::Rank() line 52
- class-const WindowFunctionKind::DenseRank() line 52
- class-const WindowFunctionKind::Tile() line 53
- new ScalarFact line 53
- new Known line 53
- class-const TypeClass::Unsigned() line 53
- class-const Nullability::NotNull() line 53
- class-const WindowFunctionKind::CumulativeDistribution() line 54
- class-const WindowFunctionKind::PercentRank() line 55
- class-const TypeClass::Floating() line 55
- class-const WindowFunctionKind::Lead() line 56
- class-const WindowFunctionKind::Lag() line 56
- method-call TypeAggregation::aggregate() line 57
- new TypeAggregation line 57
- class-const Nullability::Nullable() line 58
- class-const WindowFunctionKind::FirstValue() line 60
- class-const WindowFunctionKind::LastValue() line 60
- class-const WindowFunctionKind::NthValue() line 61
- new NullOnly line 61
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.