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

Function winref_checkspec

src/backend/parser/parse_clause.c:224–237  ·  view source on GitHub ↗

* winref_checkspec * * See if any WindowFuncss using this spec are DISTINCT qualified. * * In addition, we're going to check winrequireorder / winallowframe. * You might want to do it in ParseFuncOrColumn, * but we need to do this here after all the transformations * (especially parent inheritance) was done. */

Source from the content-addressed store, hash-verified

222 * (especially parent inheritance) was done.
223 */
224static bool
225winref_checkspec(ParseState *pstate, List *targetlist, Index winref,
226 bool has_order, bool has_frame)
227{
228 winref_check_ctx ctx;
229
230 ctx.pstate = pstate;
231 ctx.winref = winref;
232 ctx.has_order = has_order;
233 ctx.has_frame = has_frame;
234
235 return expression_tree_walker((Node *) targetlist,
236 winref_checkspec_walker, (void *) &ctx);
237}
238
239/*
240 * setTargetTable

Callers 1

Calls 1

expression_tree_walkerFunction · 0.85

Tested by

no test coverage detected