-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
date_trunc small update for readability (#12479)
* Fix date_trunc error message It was suggesting only nanosecond timestamps are supported, while all arrow time units are. * Remove dead code from date_trunc `process_array::<TimestampNanosecondType>` can succeed only for an array that can be downcast to array of nanosecond timestamps, but that case is explicitly handled earlier. * Simplify date_trunc time unit switch Make it clear to the compiler (and the reader) that all time units are covered.
- Loading branch information
Showing
1 changed file
with
26 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters