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

Method nulls_first

datafusion/sql/src/planner.rs:186–193  ·  view source on GitHub ↗

Evaluates the null ordering based on the given ascending flag. # Returns `true` if nulls should appear first. `false` if nulls should appear last.

(&self, asc: bool)

Source from the content-addressed store, hash-verified

184 /// * `true` if nulls should appear first.
185 /// * `false` if nulls should appear last.
186 pub fn nulls_first(&self, asc: bool) -> bool {
187 match self {
188 Self::NullsMax => !asc,
189 Self::NullsMin => asc,
190 Self::NullsFirst => true,
191 Self::NullsLast => false,
192 }
193 }
194}
195
196impl FromStr for NullOrdering {

Callers 2

build_order_byMethod · 0.45
order_by_to_sort_exprMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected