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

Get rid of additional QueryRunner #1156

Merged
merged 2 commits into from
Jan 7, 2025
Merged

Get rid of additional QueryRunner #1156

merged 2 commits into from
Jan 7, 2025

Conversation

mieciu
Copy link
Member

@mieciu mieciu commented Jan 3, 2025

Changing the QueryRunner so that it relies on clickhouse.LogManagerIFace instead of *clickhouse.LogManager.

Having that, we won't need a duplicate of QueryRunner in #1119.

Caveat: we're adding a that dumb dummy table resolver, but that's way simpler than having a copy of QueryRunner.

Lots of LoCs to save here 😉

@mieciu mieciu marked this pull request as ready for review January 3, 2025 19:59
@mieciu mieciu requested a review from a team as a code owner January 3, 2025 19:59
Copy link
Contributor

@jakozaur jakozaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider one rename.


// DummyTableResolver is a dummy implementation of TableResolver to satisfy the QueryRunner and make it be compatible with the v2 api
// thanks to this we can reuse the existing QueryRunner implementation without any changes.
type DummyTableResolver struct{}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would consider naming it EmptyTableResolver as it better describes and we already use that name.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll handle this in the next PR as this will have to also undergo a change related to common table handling 👍

@mieciu mieciu added this pull request to the merge queue Jan 7, 2025
Merged via the queue into main with commit bdef811 Jan 7, 2025
5 checks passed
@mieciu mieciu deleted the universal-query-runner branch January 7, 2025 08:33
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