-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
chore: clickhouse sql support for v3 #6778
base: main
Are you sure you want to change the base?
Conversation
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
1 similar comment
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Changes requested. Reviewed everything up to 528c7c6 in 2 minutes and 27 seconds
More details
- Looked at
120
lines of code in5
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. pkg/query-service/app/querier/querier.go:545
- Draft comment:
Typo in context key: 'enfore_max_result_rows' should be 'enforce_max_result_rows'. This typo appears in multiple files and should be corrected. - Reason this comment was not posted:
Marked as duplicate.
2. pkg/query-service/app/querier/v2/querier.go:551
- Draft comment:
Typo in context key: 'enfore_max_result_rows' should be 'enforce_max_result_rows'. This typo appears in multiple files and should be corrected. - Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_PWjJqhdBYsXCTLoj
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on 9dc277a in 36 seconds
More details
- Looked at
39
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. pkg/query-service/app/clickhouseReader/wrapper.go:48
- Draft comment:
Fixes a typo in the context key fromenfore_max_result_rows
toenforce_max_result_rows
. Ensure that this change is consistently applied wherever this context key is used. - Reason this comment was not posted:
Comment did not seem useful.
Workflow ID: wflow_nZ43m68P2EsP8Xy5
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
sorry I didn't understand what this is fixing can you explain a bit more ? |
Without this fix, one can't run ClickHouse query for list queries. V4 supports running CH list queries. This change adds backward support for v3. While at it, since events are string, we format them better in list query. |
Summary
There are our users who use v3 endpoint for traces with API, it was removed from v3 and moved to v4. This adds back support for v3.
Important
Reintroduces v3 ClickHouse SQL query support with enforced result row limits in the query service.
GetListResultV3()
inreader.go
.max_result_rows
for v3 queries usingMaxResultRowsForCHQuery
inwrapper.go
andquerier.go
.MaxResultRowsForCHQuery
toClickhouseQuerySettings
inwrapper.go
.MaxResultRowsForCHQuery
inaddClickHouseSettings()
to enforce row limits.MaxResultRowsForCHQuery
as 1,000,000 inconstants.go
.runBuilderListQueries()
andQueryRange()
inquerier.go
andv2/querier.go
to handle v3 ClickHouse SQL queries.This description was created by for 9dc277a. It will automatically update as commits are pushed.