To_date function in nereids return type should be DATEV2 if the arg type is DATETIMEV2. Before the return type was DATE which would cause BE get wrong query result.
To_date function in nereids return type should be DATEV2 if the arg type is DATETIMEV2. Before the return type was DATE which would cause BE get wrong query result.