thanos-io / promql-engine

Multi-threaded PromQL engine implementation based on the Volcano paper.
Apache License 2.0
141 stars 54 forks source link

Use interface to traverse nodes #431

Closed fpetkovski closed 6 months ago

fpetkovski commented 6 months ago

Now that all logical nodes have the same interface, we can refactor traversal functions to rely on it instead if having a type switch statement.