-
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
row_number aggregate window function
- Loading branch information
1 parent
119f7fb
commit b04bf9c
Showing
7 changed files
with
167 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
title: RowNumber | ||
--- | ||
|
||
# RowNumber Aggregate Window Leaf Expression | ||
|
||
`RowNumber` is a [RowNumberLike](RowNumberLike.md) leaf expression known as [row_number](#prettyName). | ||
|
||
## Evaluating Expression { #evaluateExpression } | ||
|
||
??? note "DeclarativeAggregate" | ||
|
||
```scala | ||
evaluateExpression: AttributeReference | ||
``` | ||
|
||
`evaluateExpression` is part of the [DeclarativeAggregate](DeclarativeAggregate.md#evaluateExpression) abstraction. | ||
|
||
`evaluateExpression` is the [rowNumber](RowNumberLike.md#rowNumber) attribute reference. | ||
|
||
## Pretty Name { #prettyName } | ||
|
||
??? note "Expression" | ||
|
||
```scala | ||
prettyName | ||
``` | ||
|
||
`prettyName` is part of the [Expression](Expression.md#prettyName) abstraction. | ||
|
||
`prettyName` is the following text: | ||
|
||
```text | ||
row_number | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
title: RowNumberLike | ||
--- | ||
|
||
# RowNumberLike Aggregate Window Function Expressions | ||
|
||
`RowNumberLike` is an extension of the [AggregateWindowFunction](AggregateWindowFunction.md) abstraction for [aggregate window function leaf expressions](#implementations). | ||
|
||
## Implementations | ||
|
||
* `CumeDist` | ||
* `NTile` | ||
* [RowNumber](RowNumber.md) | ||
|
||
## rowNumber Attribute Reference { #rowNumber } | ||
|
||
```scala | ||
rowNumber: AttributeReference | ||
``` | ||
|
||
`rowNumber` is an `AttributeReference` with the following properties: | ||
|
||
* `rowNumber` name | ||
* `IntegerType` data type | ||
* [nullable](Expression.md#nullable) disabled (`false`) | ||
|
||
## Aggregation Buffer Attributes { #aggBufferAttributes } | ||
|
||
??? note "AggregateFunction" | ||
|
||
```scala | ||
aggBufferAttributes: Seq[AttributeReference] | ||
``` | ||
|
||
`aggBufferAttributes` is part of the [AggregateFunction](AggregateFunction.md#aggBufferAttributes) abstraction. | ||
|
||
`aggBufferAttributes` is a collection with the [rowNumber](#rowNumber) attribute reference. | ||
|
||
## Update Expressions { #updateExpressions } | ||
|
||
??? note "DeclarativeAggregate" | ||
|
||
```scala | ||
updateExpressions: Seq[Expression] | ||
``` | ||
|
||
`updateExpressions` is part of the [DeclarativeAggregate](DeclarativeAggregate.md#updateExpressions) abstraction. | ||
|
||
`updateExpressions` is a collection with the [rowNumber](#rowNumber) attribute reference incremented (by 1). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters