Floor timestamp to week exist error:
The start day of the week is not Sunday or Monday, calcite use Thursday to split a week.
sql: select FLOOR(CAST('2017-01-28' AS TIMESTAMP) TO WEEK);
2017-01-26 is Thursday that is not our expect result. As result, 2017-01-22 is the first day that we expect.