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

Method try_pushdown_sort

datafusion/datasource/src/file.rs:260–267  ·  view source on GitHub ↗

Try to create a new FileSource that can produce data in the specified sort order. This method attempts to optimize data retrieval to match the requested ordering. It receives both the requested ordering and equivalence properties that describe the output data from this file source. # Parameters `order` - The requested sort ordering from the query `eq_properties` - Equivalence properties of the d

(
        &self,
        order: &[PhysicalSortExpr],
        eq_properties: &EquivalenceProperties,
    )

Source from the content-addressed store, hash-verified

258 /// [`Self::try_reverse_output`] until it is removed. After that point, the
259 /// default implementation will return [`SortOrderPushdownResult::Unsupported`].
260 fn try_pushdown_sort(
261 &self,
262 order: &[PhysicalSortExpr],
263 eq_properties: &EquivalenceProperties,
264 ) -> Result<SortOrderPushdownResult<Arc<dyn FileSource>>> {
265 #[expect(deprecated)]
266 self.try_reverse_output(order, eq_properties)
267 }
268
269 /// Deprecated: Renamed to [`Self::try_pushdown_sort`].
270 #[deprecated(

Callers

nothing calls this directly

Implementers 8

test_util.rsdatafusion/datasource/src/test_util.rs
mod.rsdatafusion/datasource/src/file_scan_co
pushdown_utils.rsdatafusion/core/tests/physical_optimiz
source.rsdatafusion/datasource-json/src/source.
source.rsdatafusion/datasource-arrow/src/source
source.rsdatafusion/datasource-csv/src/source.r
source.rsdatafusion/datasource-avro/src/source.
source.rsdatafusion/datasource-parquet/src/sour

Calls 1

try_reverse_outputMethod · 0.80

Tested by

no test coverage detected