From a254a17742f07cfaeb36f0f62891f592a452c2bc Mon Sep 17 00:00:00 2001 From: Ted Kaemming <65315+tkaemming@users.noreply.github.com> Date: Fri, 2 Aug 2024 20:46:25 -0700 Subject: [PATCH] property name/keys are always strings --- posthog/hogql/printer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posthog/hogql/printer.py b/posthog/hogql/printer.py index 070b9614cce48a..a0a6e87cbd2399 100644 --- a/posthog/hogql/printer.py +++ b/posthog/hogql/printer.py @@ -1060,7 +1060,7 @@ def visit_property_type(self, type: ast.PropertyType): property_sql = f"{self.visit(field_type.table_type)}.{property_sql}" materialized_property_sql = property_sql else: - property_name = type.chain[0] + property_name = str(type.chain[0]) # For now, we're assuming that properties are in either no # groups or one group, so just using the first group # returned is fine. If we start putting properties in