influxdata / influxdata/influxdb

PushDownFilterRule does not push down negative literals

Open
#17,075 3 comments 0 reactions 0 assignees View on GitHub
team/query
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

Negative literals will show up as a unary operator surrounding a literal. The push down filter rule does not recognize this pattern so it won't push down negative numbers to the storage layer.

The push down filter should recognize negative numbers and translate those literals correctly.

Related to #17062.

Contributor guide

Open the contributing guide

Research direction

Start by locating PushDownFilterRule and read the discussion in related issue #17062. Trace how unary operators around literals are handled during filter pushdown, then verify that negative numbers are translated correctly for the storage layer.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.