-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: allow full_sorting_merge in funnels #26610
Merged
+502
−142
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b6fa5aa
auto join
aspicer f9a2206
full sorting
aspicer 094d5da
allow full_sorting_merge in funnels
aspicer ef4d6ca
join algo setting
aspicer 2ae335f
Update query snapshots
github-actions[bot] beb4de1
Update query snapshots
github-actions[bot] d8d5305
lala
aspicer 747c6d9
Update query snapshots
github-actions[bot] 7df7c12
Update query snapshots
github-actions[bot] ac7a4c9
Update query snapshots
github-actions[bot] a796c79
merge
aspicer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
from posthog.hogql.constants import HogQLQuerySettings | ||
from posthog.hogql.parser import parse_select, parse_expr | ||
from posthog.hogql_queries.insights.funnels import FunnelTrends | ||
from posthog.hogql_queries.insights.funnels.base import JOIN_ALGOS | ||
from posthog.hogql_queries.insights.utils.utils import get_start_of_interval_hogql_str | ||
from posthog.schema import BreakdownType, BreakdownAttributionType | ||
from posthog.utils import DATERANGE_MAP, relative_date_parse | ||
|
@@ -195,7 +196,9 @@ def get_query(self) -> ast.SelectQuery: | |
""", | ||
{"fill_query": fill_query, "inner_select": inner_select}, | ||
) | ||
return cast(ast.SelectQuery, s) | ||
s = cast(ast.SelectQuery, s) | ||
s.settings = HogQLQuerySettings(join_algorithm=JOIN_ALGOS) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. might be safer to first check emptiness and then override |
||
return s | ||
|
||
def _matching_events(self): | ||
if ( | ||
|
@@ -254,4 +257,5 @@ def actor_query( | |
select_from=select_from, | ||
order_by=order_by, | ||
where=where, | ||
settings=HogQLQuerySettings(join_algorithm=JOIN_ALGOS), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for memory issues why don't we go for
auto
? performance concerns?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when i tested it, it took longer and timed out on metabase.