-
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
fix: use placehold in limit and use proper exists #6667
Conversation
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! Reviewed everything up to a6d819e in 5 minutes and 35 seconds
More details
- Looked at
131
lines of code in5
files - Skipped
0
files when reviewing. - Skipped posting
4
drafted comments based on config settings.
1. pkg/query-service/app/querier/helper.go:193
- Draft comment:
Consider defining#LIMIT_PLACEHOLDER
as a constant to avoid magic strings and ensure consistency. - Reason this comment was not posted:
Confidence changes required:50%
The change from fmt.Sprintf to strings.Replace is appropriate for replacing placeholders in strings. However, the placeholder string should be defined as a constant to avoid magic strings and ensure consistency across the codebase.
2. pkg/query-service/app/querier/v2/helper.go:193
- Draft comment:
Consider defining#LIMIT_PLACEHOLDER
as a constant to avoid magic strings and ensure consistency. - Reason this comment was not posted:
Confidence changes required:50%
The change from fmt.Sprintf to strings.Replace is appropriate for replacing placeholders in strings. However, the placeholder string should be defined as a constant to avoid magic strings and ensure consistency across the codebase.
3. pkg/query-service/app/traces/v4/query_builder.go:328
- Draft comment:
Consider defining#LIMIT_PLACEHOLDER
as a constant to avoid magic strings and ensure consistency. - Reason this comment was not posted:
Confidence changes required:50%
The change from fmt.Sprintf to strings.Replace is appropriate for replacing placeholders in strings. However, the placeholder string should be defined as a constant to avoid magic strings and ensure consistency across the codebase.
4. pkg/query-service/app/querier/helper.go:193
- Draft comment:
Avoid using inline styles or direct string replacements in React components. Use external stylesheets, CSS classes, or styled components instead. This issue is also present inpkg/query-service/app/querier/v2/helper.go
on line 193. - Reason this comment was not posted:
Comment did not seem useful.
Workflow ID: wflow_en1qzAwj6HAElSbt
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
I couldn't follow what change regarding the exists, can you please share more detail? |
@srikanthccv I have updated the description |
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
2 similar comments
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> |
please hold releasing till other messaging changes are merged. |
Fixes https://github.com/SigNoz/engineering-pod/issues/2098
exist explaination
previously
http.route != ''
http_url != ''
Here since we renamed
http.route
toattribute_string_http$$route
in v3 . There is no column withhttp.route
and the query failed as it was not use the correct name for the keyNow
attribute_string_http$$route != ''
http_url != ''
Now we use context from the static fields to decide
Important
Improve query handling by using placeholders for limit queries and correcting column names for existence checks.
strings.Replace
instead offmt.Sprintf
for limit queries inhelper.go
andv2/helper.go
.exists
andnot exists
operators inquery_builder.go
.existsSubQueryForFixedColumn()
inquery_builder.go
to handle string type columns correctly.TestPrepareTracesQuery
inquery_builder_test.go
to reflect changes in limit query handling.exists
andnot exists
operators inTest_buildTracesFilterQuery
inquery_builder_test.go
.This description was created by for a6d819e. It will automatically update as commits are pushed.