influxdata / influxdata/influxdb
Program is nested too deep error
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
Description
When I query fields more than 200, it doesn't work and raise error like "Program is nested too deep error", the info is following:
compilation failed: error @4:22-4:1706: Program is nested too deep error @4:1710-4:1737: Program is nested too deep error @4:1741-4:1749: Program is nested too deep error @4:1753-4:1768: Program is nested too deep error @4:1772-4:1773: Program is nested too deep error @4:1774-4:1780: Program is nested too deep
the influx sql only contains fileds which combined with "or", like the following:
from (bucket: "my_bucket"
)|> range(start: 1641353027)
|> filter(fn: (r) => r._measurement == "component")
|> filter(fn: (r) => r._field == "ds" or r._field == "fg")
|> sort(columns: ["_time"], desc: true)
|> limit(n:2)
Contributor guide
Research direction
Start by reproducing the reported failure with the provided InfluxQL/Flux query, expanding the `_field` filter beyond 200 fields. Trace where the compiler emits "Program is nested too deep" and identify the supported behavior for large OR expressions; done means the query compiles or the limitation is clearly documented and covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100