Skip to main content

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

ParameterTypeDescription
idSQLIdentifier-
argsASTNode[]-
windowASTIdentifier | WindowSpecThe window specification or reference to a named window defined in the WINDOW clause.
filter?ASTNode-

Returns

ASTWindowFn

Overrides

ASTAggregate.constructor

Properties

args

args: ASTNode[]

Defined in: core/dist/ast.d.ts:54

Argument expressions in source order.

Inherited from

ASTAggregate.args


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

ASTAggregate.distinct


filter?

optional filter?: ASTNode

Defined in: lang-sql/src/ast/expression.ts:239

Optional FILTER (WHERE ...) predicate applied before aggregation.

Inherited from

ASTAggregate.filter


id

id: ASTIdentifier

Defined in: core/dist/ast.d.ts:52

Identifier that resolves to the function implementation.

Inherited from

ASTAggregate.id


lang

lang: Lowercase<string>

Defined in: core/dist/ast.d.ts:50

Language this function belongs to.

Inherited from

ASTAggregate.lang


orderBy?

optional orderBy?: OrderByItem[]

Defined in: lang-sql/src/ast/expression.ts:237

Per-aggregate ORDER BY clause; undefined for unordered aggregates.

Inherited from

ASTAggregate.orderBy


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?

optional withinGroupArgs?: OrderByItem[]

Defined in: lang-sql/src/ast/expression.ts:241

Ordering for ordered-set aggregate functions (WITHIN GROUP (ORDER BY ...)).

Inherited from

ASTAggregate.withinGroupArgs

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

ParameterType
visitorSQLVisitor<Ret, Arg>
arg?Arg

Returns

Ret

Overrides

ASTAggregate.accept