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

Function WinGetPartitionRowCount

src/backend/executor/nodeWindowAgg.c:3459–3465  ·  view source on GitHub ↗

* WinGetPartitionRowCount * Return total number of rows contained in the current partition. * * Note: this is a relatively expensive operation because it forces the * whole partition to be "spooled" into the tuplestore at once. Once * executed, however, additional calls within the same partition are cheap. */

Source from the content-addressed store, hash-verified

3457 * executed, however, additional calls within the same partition are cheap.
3458 */
3459int64
3460WinGetPartitionRowCount(WindowObject winobj)
3461{
3462 Assert(WindowObjectIsValid(winobj));
3463 spool_tuples(winobj->winstate, -1);
3464 return winobj->winstate->spooled_rows;
3465}
3466
3467/*
3468 * WinSetMarkPosition

Callers 3

window_percent_rankFunction · 0.85
window_cume_distFunction · 0.85
window_ntileFunction · 0.85

Calls 1

spool_tuplesFunction · 0.85

Tested by

no test coverage detected