Description
Currently, there are many places where we check both YearMonthIntervalType and DayTimeIntervalType in the same match case, like
case _: YearMonthIntervalType | _: DayTimeIntervalType => false
Need to add new trait or abstract class that should be extended by YearMonthIntervalType and DayTimeIntervalType. So, we can transform the code above to:
case _: AnsiIntervalType => false