Skip to content

Conversation

@theevocater
Copy link

We at Lyft are using this library to lint and perform operations on the AST of metricsql queries. This means we are roundtripping the queries from a source and back. For our usecase, we'd prefer to have a way to operate directly on the unoptimized parse tree. As an example, there are times where doing constant folding would write back a query that is less useful to a human.

To enable this use case, I've pulled out the core functionality of calling parseInternal, and evaluating the WITH expressions into a separate function.

@theevocater theevocater closed this Dec 9, 2024
@theevocater theevocater reopened this Dec 9, 2024
What actually needs to happen here is quite different. I'll take a crack
at that later
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.

2 participants