Skip to content

Commit

Permalink
Fix minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Mar 19, 2024
1 parent 6a6104c commit 8e12666
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion posthog/hogql_queries/insights/funnels/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def breakdown_values(self) -> List[int] | List[str] | List[List[str]]:
)

# execute query
results = execute_hogql_query(values_query, self.context.team, limit_context=self.limit_context).results
results = execute_hogql_query(values_query, self.context.team).results
if results is None:
raise ValidationError("Apologies, there has been an error computing breakdown values.")
return [row[0] for row in results[0:breakdown_limit_or_default]]
Expand Down
4 changes: 3 additions & 1 deletion posthog/hogql_queries/insights/test/test_paginators.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import cast
from posthog.hogql.ast import SelectQuery
from posthog.hogql.constants import (
LimitContext,
get_default_limit_for_context,
Expand Down Expand Up @@ -136,7 +138,7 @@ def test_response_params_consistency(self):
"""Test consistency of response_params method."""
paginator = HogQLHasMorePaginator(limit=5, offset=10)
paginator.response = paginator.execute_hogql_query(
parse_select("SELECT * FROM persons"),
cast(SelectQuery, parse_select("SELECT * FROM persons")),
query_type="test_query",
team=self.team,
)
Expand Down

0 comments on commit 8e12666

Please sign in to comment.