PostHog/posthog

Feature Request: Expose cohort calculation failure reasons

Opened this issue · 1 comments

Feature request

Is your feature request related to a problem?

When a cohort fails to calculate, we don't expose the error, making it difficult for the user to debug. One recent example is from a user who was trying to filter an event by some BigQuery properties using a SQL expression, and his queries were failing, but the cohort doesn't say that. Only by trying the same queries in a Trends insight were we able to see the error and adjust from there.

Describe the solution you'd like

Expose cohort calculation failure errors, similar to how insights expose failed queries

Image

Describe alternatives you've considered

Additional context

From: https://posthoghelp.zendesk.com/agent/tickets/37937

Debug info

null

Hi ordehi,

I am working on this and made some code adjustments. However, as personal machine isn't powerful enough, I'm waiting on Github to give me access to 8/16 cores codespaces to make all the necessary tests and migrations, before being able to check if fully functional.

If changes tried don't fix this, I will also be updating.