Skip to content

feat: add support for fill modifiers in binary operations#62

Open
andriibeee wants to merge 1 commit intoVictoriaMetrics:masterfrom
andriibeee:fill-modifiers
Open

feat: add support for fill modifiers in binary operations#62
andriibeee wants to merge 1 commit intoVictoriaMetrics:masterfrom
andriibeee:fill-modifiers

Conversation

@andriibeee
Copy link

@andriibeee andriibeee commented Mar 5, 2026

fix VictoriaMetrics/VictoriaMetrics#10598

Summary by cubic

Added support for fill modifiers (fill, fill_left, fill_right) in binary operations to set default values when one side is missing. This expands query syntax and improves control over join behavior.

  • New Features
    • Parser recognizes fill, fill_left, and fill_right modifiers with numeric values, including negatives, inf, and NaN.
    • fill(x) sets both FillLeft and FillRight; fill_left(x) and fill_right(x) set sides independently.
    • Works alongside existing on()/group_* modifiers and is treated as a reserved identifier.
    • Output formatting includes the fill modifiers via appendModifiers.
    • Added tests for case-insensitive syntax, value parsing, and normalization.

Written for commit 14411c8. Summary will update on new commits.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MetricsQL: add support for fill(), fill_left() and fill_right() modifiers

2 participants