Class: ASTWindowFn
Defined in: lang-sql/src/ast/expression.ts:255
Window function call, extending ASTAggregate with a window specification.
Extends
Constructors
Constructor
new ASTWindowFn(
id,args,window,filter?):ASTWindowFn
Defined in: lang-sql/src/ast/expression.ts:256
Parameters
| Parameter | Type | Description |
|---|---|---|
id | SQLIdentifier | - |
args | ASTNode[] | - |
window | ASTIdentifier | WindowSpec | The window specification or reference to a named window defined in the WINDOW clause. |
filter? | ASTNode | - |
Returns
ASTWindowFn
Overrides
Properties
args
args:
ASTNode[]
Defined in: core/dist/ast.d.ts:54
Argument expressions in source order.
Inherited from
distinct
distinct:
boolean
Defined in: lang-sql/src/ast/expression.ts:230
true when the DISTINCT keyword was present, so duplicate inputs are discarded.
Inherited from
filter?
optionalfilter?:ASTNode
Defined in: lang-sql/src/ast/expression.ts:239
Optional FILTER (WHERE ...) predicate applied before aggregation.
Inherited from
id
id:
ASTIdentifier
Defined in: core/dist/ast.d.ts:52
Identifier that resolves to the function implementation.
Inherited from
lang
lang:
Lowercase<string>
Defined in: core/dist/ast.d.ts:50
Language this function belongs to.
Inherited from
orderBy?
optionalorderBy?:OrderByItem[]
Defined in: lang-sql/src/ast/expression.ts:237
Per-aggregate ORDER BY clause; undefined for unordered aggregates.
Inherited from
window
window:
ASTIdentifier|WindowSpec
Defined in: lang-sql/src/ast/expression.ts:260
The window specification or reference to a named window defined in the WINDOW clause.
withinGroupArgs?
optionalwithinGroupArgs?:OrderByItem[]
Defined in: lang-sql/src/ast/expression.ts:241
Ordering for ordered-set aggregate functions (WITHIN GROUP (ORDER BY ...)).
Inherited from
Methods
accept()
accept<
Ret,Arg>(visitor,arg?):Ret
Defined in: lang-sql/src/ast/expression.ts:266
ASTNode.accept
Type Parameters
| Type Parameter |
|---|
Ret |
Arg |
Parameters
| Parameter | Type |
|---|---|
visitor | SQLVisitor<Ret, Arg> |
arg? | Arg |
Returns
Ret