HIVE-9480: Build UDF TRUNC to implement FIRST_DAY as compared with LAST_DAY (Xiaobing Zhou via Jason Dere)