Function statistics_oracle

Source
pub(crate) async fn statistics_oracle(
    session: &Session,
    source_ids: &BTreeSet<GlobalId>,
    query_as_of: &Antichain<Timestamp>,
    is_oneshot: bool,
    system_config: &SystemVars,
    storage_collections: &dyn StorageCollections<Timestamp = Timestamp>,
) -> Result<Box<dyn StatisticsOracle>, AdapterError>
Expand description

Creates a statistics oracle for query optimization.

This is a free-standing function that can be called from both the old peek sequencing and the new frontend peek sequencing.