pick: https://github.com/apache/doris/pull/37003, https://github.com/apache/doris/pull/48695 and https://github.com/apache/doris/pull/49665 --------- Co-authored-by: Mryange <59914473+Mryange@users.noreply.github.com> Co-authored-by: koi <koi20000@163.com>