query, report https://gist.github.com/alesapin/c91d9ffd65471c4d8b595219a26a601a.
Full report
https://clickhouse-test-reports.s3.yandex.net/19412/cc2788af881c96701076b366259bc99525d926b1/fuzzer_asan/report.html#fail1
{
        return lut[d].year * 4 + (lut[d].month - 1) / 3;
    }
    inline unsigned toRelativeQuarterNum(time_t t) const
    {
        return toRelativeQuarterNum(toDayNum(t));
    }
    
    inline time_t toRelativeHourNum(time_t t) const
    {
        if (offset_is_whole_number_of_hours_everytime)
            return t / 3600;
        
        
        return (t + 86400 - offset_at_start_of_epoch) / 3600;
    }
    inline time_t toRelativeHourNum(DayNum d) const
    {
        return toRelativeHourNum(lut[d].date);
    }
    inline time_t toRelativeMinuteNum(time_t t) const
    {
        return t / 60;
    }
    inline time_t toRelativeMinuteNum(DayNum d) const
    {
        return toRelativeMinuteNum(lut[d].date);
    }
    inline DayNum toStartOfYearInterval(DayNum d, UInt64 years) const