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

Method output_ordering

datafusion/functions/src/math/round.rs:439–452  ·  view source on GitHub ↗
(&self, input: &[ExprProperties])

Source from the content-addressed store, hash-verified

437 }
438
439 fn output_ordering(&self, input: &[ExprProperties]) -> Result<SortProperties> {
440 // round preserves the order of the first argument
441 let value = &input[0];
442 let precision = input.get(1);
443
444 if precision
445 .map(|r| r.sort_properties.eq(&SortProperties::Singleton))
446 .unwrap_or(true)
447 {
448 Ok(value.sort_properties)
449 } else {
450 Ok(SortProperties::Unordered)
451 }
452 }
453
454 fn documentation(&self) -> Option<&Documentation> {
455 self.doc()

Callers

nothing calls this directly

Calls 3

getMethod · 0.45
mapMethod · 0.45
eqMethod · 0.45

Tested by

no test coverage detected