wangbo commented on code in PR #49884: URL: https://github.com/apache/doris/pull/49884#discussion_r2036400492
########## fe/fe-core/src/main/java/org/apache/doris/analysis/AlterRoutineLoadStmt.java: ########## @@ -248,9 +249,12 @@ private void checkJobProperties() throws UserException { } if (jobProperties.containsKey(CreateRoutineLoadStmt.WORKLOAD_GROUP)) { String workloadGroup = jobProperties.get(CreateRoutineLoadStmt.WORKLOAD_GROUP); - long wgId = Env.getCurrentEnv().getWorkloadGroupMgr() - .getWorkloadGroup(ConnectContext.get().getCurrentUserIdentity(), workloadGroup); - analyzedJobProperties.put(CreateRoutineLoadStmt.WORKLOAD_GROUP, String.valueOf(wgId)); + if (!StringUtils.isEmpty(workloadGroup)) { + long wgId = Env.getCurrentEnv().getWorkloadGroupMgr() + .getWorkloadGroupByName(ConnectContext.get().getCurrentUserIdentity(), workloadGroup).get(0) Review Comment: 这里比较尴尬的点是,最初设计routine load的参数的时候,只能存了一个wg的id,所以目前routineload可能没法实现多tag间的路由,得用别的办法解决。 -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org