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