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

Method sort

datafusion/expr/src/expr.rs:1951–1953  ·  view source on GitHub ↗

Create a sort configuration from an existing expression. ``` # use datafusion_expr::col; let sort_expr = col("foo").sort(true, true); // SORT ASC NULLS_FIRST ```

(self, asc: bool, nulls_first: bool)

Source from the content-addressed store, hash-verified

1949 /// let sort_expr = col("foo").sort(true, true); // SORT ASC NULLS_FIRST
1950 /// ```
1951 pub fn sort(self, asc: bool, nulls_first: bool) -> Sort {
1952 Sort::new(self, asc, nulls_first)
1953 }
1954
1955 /// Return `IsTrue(Box(self))`
1956 pub fn is_true(self) -> Expr {

Calls 1

newFunction · 0.85