MCPcopy Create free account
hub / github.com/apache/datafusion / output_ordering

Method output_ordering

datafusion/functions/src/datetime/date_trunc.rs:425–435  ·  view source on GitHub ↗
(&self, input: &[ExprProperties])

Source from the content-addressed store, hash-verified

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 }

Callers

nothing calls this directly

Calls 1

eqMethod · 0.45

Tested by

no test coverage detected