[QUERY] The type of function which is different from the type of expr will return the incorrect result in query. Example: the type of expr is date the type of function is int So, the upper fragment will receive a int value instead of date while the result expr is date. If there is no cast function, the result of query will be incorrect.