Skip to content

Commit

Permalink
property name/keys are always strings
Browse files Browse the repository at this point in the history
  • Loading branch information
tkaemming committed Aug 3, 2024
1 parent 3c4c7b6 commit a254a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posthog/hogql/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a254a17

Please sign in to comment.