dhamotharan-ps commented on issue #8790:
URL:
https://github.com/apache/arrow-datafusion/issues/8790#issuecomment-1885461515
@alamb In /expr/src/conditional_expressions.rs file, it is mentioned that
coalesce() is supported only for below datatypes and not supported for
Timestamp. And so, the return value of coalesce() with timestamp is considered
as UTF8. Is there any specific reason for not supporting other datatypes?
```
/// Currently supported types by the coalesce function.
/// The order of these types correspond to the order on which coercion
applies
/// This should thus be from least informative to most informative
pub static SUPPORTED_COALESCE_TYPES: &[DataType] = &[
DataType::Boolean,
DataType::UInt8,
DataType::UInt16,
DataType::UInt32,
DataType::UInt64,
DataType::Int8,
DataType::Int16,
DataType::Int32,
DataType::Int64,
DataType::Float32,
DataType::Float64,
DataType::Utf8,
DataType::LargeUtf8,
];
```
--
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]