select EnsureType(Sum(CAST(key AS Interval64)), Interval64?) from (select Interval64('P1D') as key);