HIVE-10390 : CBO (Calcite Return Path): Wrong type for windowing UDFs that produce different values for each row (Jesus Camacho Rodriguez via Ashutosh Chauhan)