cherry-pick from master https://github.com/apache/doris/pull/34432 Co-authored-by: HappenLee <happenlee@hotmail.com>