It is known that in the cross-section of a high-order cylindrical vector beam (CVB), polarization is locally linear. The higher the beam order, the higher the number of full rotations of the vector of local linear polarization when passing along a contour around the optical axis. It is also known that both in the input and in the focal planes, the CVB has neither the spin angular momentum (SAM), nor the orbital angular momentum (OAM). We demonstrate here that near the focal plane of the CVB (before and after the focus), an even number of local subwavelength areas is generated, where the polarization vector in each point is rotating. In addition, in the neighboring areas, polarization vectors are rotating in different directions, so that the longitudinal component of SAM vectors in these neighboring areas is of the opposite sign. In addition, after the beam passes the focus, the rotation direction of the polarization vector in each point of the beam cross-section is changed to the opposite one. Such spatial separation of the left and right rotation of the polarization vectors manifests so that the optical spin Hall effect takes place.