Skip to content

Commit

Permalink
fix bug running top level select all queries
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Mar 26, 2024
1 parent d8f42de commit d79ce58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posthog/hogql_queries/hogql_query_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def to_actors_query(self) -> ast.SelectQuery:
def calculate(self) -> HogQLQueryResponse:
query = self.to_query()
paginator = None
if not query.limit:
if isinstance(query, ast.SelectQuery) and not query.limit:
paginator = HogQLHasMorePaginator.from_limit_context(limit_context=self.limit_context)
func = cast(
Callable[..., HogQLQueryResponse],
Expand Down

0 comments on commit d79ce58

Please sign in to comment.