(&self, input: &[ExprProperties])
| 423 | } |
| 424 | |
| 425 | fn output_ordering(&self, input: &[ExprProperties]) -> Result<SortProperties> { |
| 426 | // The DATE_TRUNC function preserves the order of its second argument. |
| 427 | let precision = &input[0]; |
| 428 | let date_value = &input[1]; |
| 429 | |
| 430 | if precision.sort_properties.eq(&SortProperties::Singleton) { |
| 431 | Ok(date_value.sort_properties) |
| 432 | } else { |
| 433 | Ok(SortProperties::Unordered) |
| 434 | } |
| 435 | } |
| 436 | fn documentation(&self) -> Option<&Documentation> { |
| 437 | self.doc() |
| 438 | } |