diff --git a/posthog/hogql/parser.py b/posthog/hogql/parser.py index 5cc7d6ced8066..32a454b05cf94 100644 --- a/posthog/hogql/parser.py +++ b/posthog/hogql/parser.py @@ -470,13 +470,13 @@ def visitKeywordForAlias(self, ctx: HogQLParser.KeywordForAliasContext): def visitAlias(self, ctx: HogQLParser.AliasContext): text = ctx.getText() if len(text) >= 2 and text.startswith("`") and text.endswith("`"): - text = parse_string(ctx) + text = parse_string(text) return text def visitIdentifier(self, ctx: HogQLParser.IdentifierContext): text = ctx.getText() if len(text) >= 2 and text.startswith("`") and text.endswith("`"): - text = parse_string(ctx) + text = parse_string(text) return text def visitIdentifierOrNull(self, ctx: HogQLParser.IdentifierOrNullContext):