samuelcolvin commented on code in PR #11501: URL: https://github.com/apache/datafusion/pull/11501#discussion_r1709219857
########## datafusion/functions/src/datetime/date_part.rs: ########## @@ -81,6 +82,9 @@ impl DatePartFunc { Exact(vec![Utf8, Time32(Millisecond)]), Exact(vec![Utf8, Time64(Microsecond)]), Exact(vec![Utf8, Time64(Nanosecond)]), + Exact(vec![Utf8, Interval(YearMonth)]), + Exact(vec![Utf8, Interval(DayTime)]), + Exact(vec![Utf8, Interval(MonthDayNano)]), Review Comment: @nrc can we add ```rs Exact(vec![Utf8, Duration(Second)]), Exact(vec![Utf8, Duration(Millisecond)]), Exact(vec![Utf8, Duration(Microsecond)]), Exact(vec![Utf8, Duration(Nanosecond)]), Exact(vec![Utf8View, Duration(Second)]), Exact(vec![Utf8View, Duration(Millisecond)]), Exact(vec![Utf8View, Duration(Microsecond)]), Exact(vec![Utf8View, Duration(Nanosecond)]), ``` here, then convert durations to Intervals — presumably `MonthDayNano` is easiest. -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org