Description
Add tests for YearMonthIntervalType and DayTimeIntervalType to LiteralExpressionSuite similar to CalendarIntervalType:
- https://github.com/apache/spark/blob/3f4c32b3ca2d0f20806f81422e086d035b2eb5ce/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/LiteralExpressionSuite.scala#L52
- https://github.com/apache/spark/blob/3f4c32b3ca2d0f20806f81422e086d035b2eb5ce/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/LiteralExpressionSuite.scala#L79
- https://github.com/apache/spark/blob/3f4c32b3ca2d0f20806f81422e086d035b2eb5ce/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/LiteralExpressionSuite.scala#L203-L204