Is your feature request related to a problem? Please describe:
When adding new optimizer hints #11364 , we have these warnings messages:
"Optimizer aggregation hints are conflicted" for TIDB_HASHAGG and TIDB_STREAMAGG.
"Join hints are conflict, you can only specify one type of join" for Join Hints.
Describe the feature you'd like:
Extract a common error message pattern for conflicted SQL hints, for example:
errMsgPattern := "Conflicted SQL Hints for %s. You can only specify one of these hints: %s"
errConflictedSQLHints := terror.ClassOptimizer.New(codeInternal, errMsgPattern)
Feature Request
Is your feature request related to a problem? Please describe:
When adding new optimizer hints #11364 , we have these warnings messages: "Optimizer aggregation hints are conflicted" for
TIDB_HASHAGG
andTIDB_STREAMAGG
. "Join hints are conflict, you can only specify one type of join" for Join Hints.Describe the feature you'd like:
Extract a common error message pattern for conflicted SQL hints, for example:
Describe alternatives you've considered:
Teachability, Documentation, Adoption, Migration Strategy: