Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parseraw function #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add parseraw function #1

wants to merge 2 commits into from

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.

1 participant