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

Method sort_by

datafusion/core/src/dataframe/mod.rs:1182–1188  ·  view source on GitHub ↗

Apply a sort by provided expressions with default direction

(self, expr: Vec<Expr>)

Source from the content-addressed store, hash-verified

1180
1181 /// Apply a sort by provided expressions with default direction
1182 pub fn sort_by(self, expr: Vec<Expr>) -> Result<DataFrame> {
1183 self.sort(
1184 expr.into_iter()
1185 .map(|e| e.sort(true, false))
1186 .collect::<Vec<SortExpr>>(),
1187 )
1188 }
1189
1190 /// Sort the DataFrame by the specified sorting expressions.
1191 ///

Callers 7

store_parquetFunction · 0.45
assert_file_metadataFunction · 0.45
new_f64Method · 0.45
test_union_by_nameFunction · 0.45
split_filesFunction · 0.45

Calls 3

sortMethod · 0.45
mapMethod · 0.45
into_iterMethod · 0.45

Tested by 4

new_f64Method · 0.36
test_union_by_nameFunction · 0.36