PostHog / posthog

🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
https://posthog.com
Other
21.23k stars 1.26k forks source link

fix: Add aliases to batch export tables #23496

Closed tomasfarias closed 2 months ago

tomasfarias commented 3 months ago

Problem

HogQL parser returns fully qualified fields, but new batch export views don't have the same names as source tables.

Changes

Use an alias on each of the views that matches the source tables (events, persons).

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

How did you test this code?