-
-
Notifications
You must be signed in to change notification settings - Fork 57
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(tiger): Implement tupleElement function in snuba #2687
Conversation
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.
Could you add an end-to-end test that has both tuple aliasing and tuple elements to verify that having both does not break things?
TupleUnaliaser(), | ||
TupleElementer(), |
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.
Would we always need to guarantee this ordering? Or it does not matter? If we need to guarantee this ordering then please add a comment.
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.
Order does not matter
) | ||
|
||
|
||
TEST_QUERIES = [ |
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.
Should we add test cases for curried_functions and lambda's as well since this visitor has implementations for them?
Codecov Report
@@ Coverage Diff @@
## master #2687 +/- ##
==========================================
- Coverage 92.86% 92.78% -0.08%
==========================================
Files 606 612 +6
Lines 28537 28995 +458
==========================================
+ Hits 26500 26903 +403
- Misses 2037 2092 +55
Continue to review full report at Codecov.
|
This reverts commit 37cd021.
…#2786) This reverts commit 37cd021. Co-authored-by: Vlad Kluev <[email protected]>
Context
The new clickhouse sometimes fails to parse queries that have a
tupleElement
function.Example:
This fails with:
Resolving the tupleElement fixes the issue: