MCPcopy Create free account
hub / github.com/PRQL/prql / activate_mapping

Method activate_mapping

prqlc/prqlc/src/sql/pq/positional_mapping.rs:20–26  ·  view source on GitHub ↗

Remember the mapping for this `RIId` to know what to apply for `apply_positional_mapping`.

(&mut self, riid: &RIId)

Source from the content-addressed store, hash-verified

18impl PositionalMapper {
19 /// Remember the mapping for this `RIId` to know what to apply for `apply_positional_mapping`.
20 pub(crate) fn activate_mapping(&mut self, riid: &RIId) {
21 self.active_positional_mapping = self.relation_positional_mapping.remove(riid);
22 log::trace!(
23 "loading remapping for {riid:?}: {:?}",
24 self.active_positional_mapping
25 );
26 }
27
28 /// Reorder or remove columns to make `Union` happy.
29 pub(crate) fn apply_active_mapping(&mut self, output: Vec<CId>) -> Vec<CId> {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected