From ffc0d3c6c636d1cc202796bbd2595fc7716521c6 Mon Sep 17 00:00:00 2001 From: Ted Kaemming <65315+tkaemming@users.noreply.github.com> Date: Tue, 26 Nov 2024 17:08:27 -0800 Subject: [PATCH] DAMN --- posthog/queries/column_optimizer/foss_column_optimizer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/posthog/queries/column_optimizer/foss_column_optimizer.py b/posthog/queries/column_optimizer/foss_column_optimizer.py index 320bd8ef27c67..c998d92480b5a 100644 --- a/posthog/queries/column_optimizer/foss_column_optimizer.py +++ b/posthog/queries/column_optimizer/foss_column_optimizer.py @@ -77,6 +77,8 @@ def columns_to_query( column = get_materialized_column_for_property(table, table_column, property_name) if column is not None and not column.is_nullable: column_names.add(column.name) + else: + column_names.add(table_column) return column_names @cached_property