MCPcopy Create free account
hub / github.com/bytedance/bolt / getIdentityProjection

Function getIdentityProjection

bolt/exec/Driver.cpp:84–93  ·  view source on GitHub ↗

Checks if output channel is produced using identity projection and returns input channel if so.

Source from the content-addressed store, hash-verified

82// Checks if output channel is produced using identity projection and returns
83// input channel if so.
84std::optional<column_index_t> getIdentityProjection(
85 const std::vector<IdentityProjection>& projections,
86 column_index_t outputChannel) {
87 for (const auto& projection : projections) {
88 if (projection.outputChannel == outputChannel) {
89 return projection.inputChannel;
90 }
91 }
92 return std::nullopt;
93}
94
95void validateOperatorResult(RowVectorPtr& result, Operator& op) {
96 try {

Callers 2

pushdownFiltersMethod · 0.85
canPushdownFiltersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected