-
Notifications
You must be signed in to change notification settings - Fork 590
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
[MapD] Added crossjoin operator #1655
Conversation
ibis/mapd/compiler.py
Outdated
| @@ -150,6 +151,10 @@ def get_result(self): | |||
| fmt_preds = util.indent('USING ' + ', '.join(fmt_preds), | |||
| self.indent * 2) | |||
| buf.write(fmt_preds) | |||
| else: | |||
| buf.write( | |||
| util.indent('ON (TRUE)', self.indent * 2) | |||
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.
Does this need the parentheses?
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.
I think it is not necessary ... thanks!
ibis/mapd/operations.py
Outdated
| @@ -324,6 +324,13 @@ def _set_literal_format(translator, expr): | |||
| return '({})'.format(', '.join(formatted)) | |||
|
|
|||
|
|
|||
| def _cross_join(translator, expr): | |||
| args = expr.op().args | |||
| t1, t2 = args[:2] | |||
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.
I think these have names, like left and right. Can you use those if they exist?
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.
You're right! the names are left and right. thanks!
ibis/mapd/operations.py
Outdated
| def _cross_join(translator, expr): | ||
| args = expr.op().args | ||
| t1, t2 = args[:2] | ||
|
|
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.
Kill this newline.
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.
done!
|
@cpcloud the conda build is failing for windows. do you have any idea about this error? |
Codecov Report
@@ Coverage Diff @@
## master #1655 +/- ##
==========================================
- Coverage 89.94% 87.33% -2.62%
==========================================
Files 185 185
Lines 27209 27219 +10
Branches 2328 2337 +9
==========================================
- Hits 24474 23771 -703
- Misses 2335 3040 +705
- Partials 400 408 +8
|
|
same problem with mariadb on windows test py35 |
|
Thanks @xmnlab ! |
This PR fixes #1621