Skip to content

Commit 5d7fe08

Browse files
committed
test(knowledge): report the window walk's index condition, filter and loops when it reads past its bound
1 parent f96af7c commit 5d7fe08

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎apps/sim/lib/knowledge/__integration__/listing-continuation.integration.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,12 @@ describe('durable source and member cycles in PostgreSQL', () => {
10331033
((toNumberOrNull(node['Actual Rows']) ?? 0) +
10341034
(toNumberOrNull(node['Rows Removed by Filter']) ?? 0)) *
10351035
(toNumberOrNull(node['Actual Loops']) ?? 1),
1036+
/** What a statement over the bound needs to explain which rows the walk passed over. */
1037+
indexCond: node['Index Cond'] ?? null,
1038+
filter: node.Filter ?? null,
1039+
rowsPerLoop: toNumberOrNull(node['Actual Rows']),
1040+
removedPerLoop: toNumberOrNull(node['Rows Removed by Filter']),
1041+
loops: toNumberOrNull(node['Actual Loops']),
10361042
}))
10371043
return { read: scans.reduce((total, { read }) => total + read, 0), scans }
10381044
}

0 commit comments

Comments
 (0)