viirya commented on code in PR #6654:
URL: https://github.com/apache/arrow-datafusion/pull/6654#discussion_r1227352646
##########
datafusion/physical-expr/src/datetime_expressions.rs:
##########
@@ -294,16 +294,24 @@ pub fn date_trunc(args: &[ColumnarValue]) ->
Result<ColumnarValue> {
}
"second" => {
// trunc to second
- let mill = ScalarValue::TimestampNanosecond(
Review Comment:
And the `signature` of `DateTrunc` should be updated, I think. Currently the
second argument is only `Timestamp(Nanosecond, None)`. But I guess that this
change wants to make output type as same as input type. So you probably want to
add more input types to `signature`.
--
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]