-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-13031] [SQL] cleanup codegen and improve test coverage #10944
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
Conversation
davies
commented
Jan 27, 2016
- enable whole stage codegen during tests even there is only one operator supports that.
- split doProduce() into two APIs: upstream() and doProduce()
- generate prefix for fresh names of each operator
- pass UnsafeRow to parent directly (avoid getters and create UnsafeRow again)
- fix bugs and tests.
|
Test build #50183 has finished for PR 10944 at commit
|
|
Can you paste some generated code? (Actually I think that's useful for most of the code gen prs). |
|
Here is the generated code for |
|
@nongli Does this one looks good to you? this one blocks others. |
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.
Can you comment what references mean? references is a very generic name
|
The generated code has a ton of extra new lines. If this is easy to remove, it will help the debuggability of this. LGTM, feel free to address the comments in follow ups. |
|
Thanks, merging this into master to unblock others, comments will be addressed by follow up. |
1. enable whole stage codegen during tests even there is only one operator supports that. 2. split doProduce() into two APIs: upstream() and doProduce() 3. generate prefix for fresh names of each operator 4. pass UnsafeRow to parent directly (avoid getters and create UnsafeRow again) 5. fix bugs and tests. This PR re-open #10944 and fix the bug. Author: Davies Liu <[email protected]> Closes #10977 from davies/gen_refactor.