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

Function cte_window_agg_walker

src/backend/parser/parse_cte.c:1252–1271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1250} CTEWindowAggSearchContext;
1251
1252static bool
1253cte_window_agg_walker(Node *node, CTEWindowAggSearchContext *context)
1254{
1255 if (node == NULL)
1256 return false;
1257
1258 if (IsA(node, FuncCall))
1259 {
1260 FuncCall *fc = (FuncCall *) node;
1261 if (fc->over != NULL)
1262 {
1263 context->found = true;
1264 context->func = fc;
1265
1266 return true;
1267 }
1268 }
1269
1270 return raw_expression_tree_walker(node, cte_window_agg_walker, context);
1271}
1272
1273static void
1274checkWindowFuncInRecursiveTerm(SelectStmt *stmt, CteState *cstate)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected