fix function in get wrong result when input const column
Co-authored-by: lihaopeng <lihaopeng@baidu.com>