Skip to content

Add more flexibility to MovingFunction window alignment #42181

Closed
@polyfractal

Description

@polyfractal

Today, the moving function pipeline aggregation operates in a "left-aligned" exclusive mode; the window that is offered for calculation is the last n values excluding the current bucket.

It's not uncommon to want the window to be inclusive (include the current bucket's value in the window). Other alignments are also useful, such as center (n/2 values before and after the current bucket) and right (n values after the current bucket).

I'm not entirely sure how we should expose these options in the API, but it would be helpful if we can provide more flexibility here.

Relates to #20667

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions