wenzhenghu commented on code in PR #60559:
URL: https://github.com/apache/doris/pull/60559#discussion_r3410738803


##########
fe/fe-core/src/main/java/org/apache/doris/resource/workloadschedpolicy/WorkloadConditionUsername.java:
##########
@@ -41,7 +43,15 @@ public WorkloadMetricType getMetricType() {
         return WorkloadMetricType.USERNAME;
     }
 
-    public static WorkloadConditionUsername 
createWorkloadCondition(WorkloadConditionOperator op, String value) {
+    public static WorkloadConditionUsername 
createWorkloadCondition(WorkloadConditionOperator op, String value)
+            throws UserException {
+        if (op != WorkloadConditionOperator.EQUAL) {
+            throw new UserException("username only support EQUAL operator");

Review Comment:
   Theoretically, this risk exists, but in practice the scenario should be 
extremely unlikely. If it does happen, it can be resolved by dropping the old 
policy and recreating it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to