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

Method with_output_ordering

datafusion/datasource/src/file_scan_config/mod.rs:459–462  ·  view source on GitHub ↗

Set the output ordering of the files The expressions are in terms of the entire table schema (file schema + partition columns), before any projection or filtering from the file scan is applied. This is used for optimization purposes, e.g. to determine if a file scan can satisfy an `ORDER BY` without an additional sort.

(mut self, output_ordering: Vec<LexOrdering>)

Source from the content-addressed store, hash-verified

457 /// This is used for optimization purposes, e.g. to determine if a file scan
458 /// can satisfy an `ORDER BY` without an additional sort.
459 pub fn with_output_ordering(mut self, output_ordering: Vec<LexOrdering>) -> Self {
460 self.output_ordering = output_ordering;
461 self
462 }
463
464 /// Set the file compression type
465 pub fn with_file_compression_type(

Calls

no outgoing calls