Skip to content

Fix stale characteristics under lazy execution when the index change - #290

Merged
ha-my-bui merged 1 commit into
mainfrom
fix/stale-characteristics-lazy-execution
Aug 5, 2026
Merged

Fix stale characteristics under lazy execution when the index change#290
ha-my-bui merged 1 commit into
mainfrom
fix/stale-characteristics-lazy-execution

Conversation

@ha-my-bui

@ha-my-bui ha-my-bui commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Fixing lazy excecution bug : Under lazy_execution=True, changing a cohort definition so the population shrinks (e.g. adding an inclusion) recomputes the index, but characteristic and outcome nodes still cache-hit: their fingerprint covers only their own definition, not the population they are computed against. Table1 then divides stale counts by the fresh N, producing percentages above 100%. The fix is as follows is to determine if the index stage has changed; if it did, clear the caches of characteristics and outcomes so they recompute against the new population.

@ha-my-bui
ha-my-bui requested a review from a-hartens as a code owner July 28, 2026 09:52
@a-hartens a-hartens added the Bug fixes Something isn't working label Jul 30, 2026
@ha-my-bui
ha-my-bui force-pushed the fix/stale-characteristics-lazy-execution branch 3 times, most recently from 7594823 to ad53743 Compare August 4, 2026 19:16
@ha-my-bui
ha-my-bui force-pushed the fix/stale-characteristics-lazy-execution branch from 0e6e41a to 215ceae Compare August 5, 2026 19:42
@ha-my-bui
ha-my-bui merged commit e065f07 into main Aug 5, 2026
4 checks passed
@ha-my-bui
ha-my-bui deleted the fix/stale-characteristics-lazy-execution branch August 5, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug fixes Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants