v.25.9Bug Fix (user-visible misbehavior in an official stable release)

Correctly cast output of PREWHERE after splitting

Correctly cast output of PREWHERE after splitting it into multiple steps. #87040 (Antonio Andelic).