### What problem does this PR solve? Fix  Related PR: https://github.com/apache/doris/pull/41314 Scanner has two constructor function on branch-2.1, but on master it just has one, so cherrypick introduced bug.