Skip to content

Commit

Permalink
fix: Fix FieldAliasType.resolve_database_field not implemented (#23186)
Browse files Browse the repository at this point in the history
  • Loading branch information
webjunkie authored Jun 24, 2024
1 parent d0e14b5 commit a8f5d09
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion posthog/hogql/database/schema/util/where_clause_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,11 @@ def visit_alias(self, node: ast.Alias) -> bool:
from posthog.hogql.database.schema.session_replay_events import RawSessionReplayEventsTable

if node.type and isinstance(node.type, ast.FieldAliasType):
resolved_field = node.type.resolve_database_field(self.context)
try:
resolved_field = node.type.resolve_database_field(self.context)
except NotImplementedError:
return False

table_type = node.type.resolve_table_type(self.context)
if not table_type:
return False
Expand Down

0 comments on commit a8f5d09

Please sign in to comment.