Currently expression like local date + 1 are not rejected by the HQL compiler. This expression is an error and should be detected. Otherwise, we’ll get unportable behavior, since such expressions are interpreted differently on different DBs.