comphead commented on issue #4761:
URL:
https://github.com/apache/arrow-datafusion/issues/4761#issuecomment-1370193596
@liukun4515 another query in PG I believe give some clue
```
select pg_typeof(least(now(), '2021-1-1'::date))
pg_typeof
--
timestamp with time zone
```
That presumes the cast happens through timestamp as you and @alamb deducted.
The same behaviour in spark
```
scala> spark.sql("select least(current_timestamp, date
'2021-1-1')").printSchema
root
|-- least(current_timestamp(), DATE '2021-01-01'): timestamp (nullable =
false)
```
let me know if you think its enough to make a PR
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]