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

Function tlist_has_srf

src/backend/optimizer/plan/transform.c:527–541  ·  view source on GitHub ↗

* Does target list have SRFs? */

Source from the content-addressed store, hash-verified

525 * Does target list have SRFs?
526 */
527bool
528tlist_has_srf(const Query *query)
529{
530 if (query->hasTargetSRFs)
531 {
532 return true;
533 }
534
535 if (expression_returns_set((Node *) query->targetList))
536 {
537 return true;
538 }
539
540 return false;
541}
542
543/*
544 * DISTINCT/DISTINCT ON/ORDER BY optimization.

Callers 4

groupby_query_rewriteFunction · 0.85
GetViewBaseRelidsFunction · 0.85

Calls 1

expression_returns_setFunction · 0.85

Tested by

no test coverage detected