posthog icon indicating copy to clipboard operation
posthog copied to clipboard

fix(data-warehouse): Removed error being thrown for missing columns

Open Gilbert09 opened this issue 9 months ago • 0 comments

Problem

  • We throw an error if there are no columns defined in a data warehouse table when creating the hogql_database
  • This is an issue because during data ingestion in warehouse, a table will have no columns defined for a short while, thus, during that period, creating a HogQL Database fails
  • Seen in this Sentry ticket

Changes

  • Don't throw an error, but just fallback to empty columns

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

  • Yes

Gilbert09 avatar Apr 29 '24 15:04 Gilbert09