Skip to content

fix: correct scale rule count query(#6870) - #6992

Open
juicewcode wants to merge 1 commit into
apache:masterfrom
juicewcode:fix/6870-scale-rule-count-query
Open

fix: correct scale rule count query(#6870)#6992
juicewcode wants to merge 1 commit into
apache:masterfrom
juicewcode:fix/6870-scale-rule-count-query

Conversation

@juicewcode

Copy link
Copy Markdown
Contributor

Fixes #6870
Fix the invalid and inconsistent scale_rule count query

Changes

  • Wrap countByQuery conditions with MyBatis <where>.
  • Change metric filtering from exact match to LIKE CONCAT('%', ..., '%').
  • Add mapper integration tests for filtered and unfiltered count queries.

Make sure that:

  • You have read the contribution guidelines.
  • You submit test cases (unit or integration tests) that back your changes.
  • Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

 Added a <where> clause to countByQuery and changed metric filtering to use LIKE for consistent fuzzy matching.
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.

[BUG] namespace-user-rel batchSave foreach references wrong item variable (namespacePluginRelDO)

1 participant