Changes

Summary

  1. [SPARK-36807][SQL] Merge ANSI interval types to a tightest common type (details)
Commit d2340f8e1c342354e1a67d468b35e86e3496ccf9 by max.gekk
[SPARK-36807][SQL] Merge ANSI interval types to a tightest common type

### What changes were proposed in this pull request?
In the PR, I propose to modify `StructType` to support merging of ANSI interval types with different fields.

### Why are the changes needed?
This will allow merging of schemas from different datasource files.

### Does this PR introduce _any_ user-facing change?
No, the ANSI interval types haven't released yet.

### How was this patch tested?
Added new test to `StructTypeSuite`.

Closes #34049 from MaxGekk/merge-ansi-interval-types.

Authored-by: Max Gekk <max.gekk@gmail.com>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
The file was modifiedsql/catalyst/src/test/scala/org/apache/spark/sql/types/StructTypeSuite.scala (diff)
The file was modifiedsql/catalyst/src/main/scala/org/apache/spark/sql/types/StructType.scala (diff)