MCPcopy Create free account
hub / github.com/apache/cloudberry / ExecAssignScanProjectionInfo

Function ExecAssignScanProjectionInfo

src/backend/executor/execScan.c:286–293  ·  view source on GitHub ↗

* ExecAssignScanProjectionInfo * Set up projection info for a scan node, if necessary. * * We can avoid a projection step if the requested tlist exactly matches * the underlying tuple type. If so, we just set ps_ProjInfo to NULL. * Note that this case occurs not only for simple "SELECT * FROM ...", but * also in most cases where there are joins or other processing nodes above * the scan n

Source from the content-addressed store, hash-verified

284 * The scan slot's descriptor must have been set already.
285 */
286void
287ExecAssignScanProjectionInfo(ScanState *node)
288{
289 Scan *scan = (Scan *) node->ps.plan;
290 TupleDesc tupdesc = node->ss_ScanTupleSlot->tts_tupleDescriptor;
291
292 ExecConditionalAssignProjectionInfo(&node->ps, tupdesc, scan->scanrelid);
293}
294
295/*
296 * ExecAssignScanProjectionInfoWithVarno

Callers 15

ExecInitDynamicSeqScanFunction · 0.85
ExecInitTidRangeScanFunction · 0.85
ExecInitWorkTableScanFunction · 0.85
ExecInitCteScanFunction · 0.85
ExecInitSubqueryScanFunction · 0.85
ExecInitSampleScanFunction · 0.85
ExecInitTableFunctionFunction · 0.85
ExecInitTableFuncScanFunction · 0.85

Tested by

no test coverage detected