fixed sql span view iterator's boundary condition