Make buildDateTimeFilterSQL accessible for SQL optimizer