| 1161 | |
| 1162 | template <typename TypeWithTimeUnit> |
| 1163 | std::shared_ptr<DataType> AsTimestampType(const std::shared_ptr<DataType>& type) { |
| 1164 | return timestamp(checked_cast<const TypeWithTimeUnit&>(*type).unit()); |
| 1165 | } |
| 1166 | |
| 1167 | // duration to duration |
| 1168 | template <typename To> |