Description
Add a new ANSI type coercion rule: when getting a date field from a Timestamp column, cast the column as Date type.
This is Spark's hack to make the implementation simple. In the default type coercion rules, the implicit cast rule does the work. However, The ANSI implicit cast rule doesn't allow converting Timestamp type as Date type, so we need to have this additional rule
to make sure the date field extraction from Timestamp columns works.
Attachments
Issue Links
- causes
-
SPARK-38266 UnresolvedException: Invalid call to dataType on unresolved object caused by GetDateFieldOperations
- Resolved
- links to