Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(hogql): support virtual tables with lazy tables #27404

Merged
merged 7 commits into from
Jan 9, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
mypy fix
  • Loading branch information
mariusandra committed Jan 9, 2025
commit 7eebdd7b205d8b3642f6693b56e7c65c13659e0c
2 changes: 1 addition & 1 deletion posthog/hogql/transforms/lazy_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def visit_select_query(self, node: ast.SelectQuery):

# Traverse the lazy tables until we reach a real table, collecting them in a list.
# Usually there's just one or two.
table_types: set[ast.LazyJoinType | ast.LazyTableType | ast.TableAliasType | ast.VirtualTableType] = []
table_types: list[ast.LazyJoinType | ast.LazyTableType | ast.TableAliasType | ast.VirtualTableType] = []
while (
isinstance(table_type, ast.TableAliasType)
or isinstance(table_type, ast.LazyJoinType)
Expand Down
Loading