-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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): Allow chaining for lazy tables #28253
Merged
Merged
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
36ba7bd
Attempt at a failing test case
danielbachhuber 2a3f445
Revert "Attempt at a failing test case"
danielbachhuber 510e0a0
Failing test cases for linear and nested joins
danielbachhuber 0245707
Merge branch 'master' into hogql/lazy-chaining-fix
danielbachhuber 92a9704
Add test cases for the succeeding scenarios
danielbachhuber aafcc0f
Field fixes
danielbachhuber 8e2dd3c
Properly persist full left and right chain for compare eq
danielbachhuber 2d10c40
Add trends test case for 8e2dd3cc289fd9dd98b84fd196393053b7a27c6d
danielbachhuber c9ffd21
Fix timestamp expression
danielbachhuber 2286034
Drop test we don't actually want to support
danielbachhuber 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
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.
@Gilbert09 I'd expect this test to fail but it passes for some reason. Do you see anything obviously wrong with it?
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.
Parsing the HogQL will work fine - you need to actually run it against clickhouse for it to fail I believe
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.
Yep, that was it:
posthog/posthog/hogql/database/test/test_database.py
Lines 876 to 884 in 2286034
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.
Is this sufficient? print_ast won't run the query
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.
@EDsCODE Yes: the test fails without 8e2dd3c and passes with.
I added an
ExperimentTrendsQuery
test too: 2d10c40