-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[SPARK-4812][SQL] Fix the initialization issue of 'codegenEnabled' #3660
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
|
Test build #24296 has started for PR 3660 at commit
|
|
Test build #24296 has finished for PR 3660 at commit
|
|
Test FAILed. |
|
|
|
Test build #24307 has started for PR 3660 at commit
|
|
Test build #24307 has finished for PR 3660 at commit
|
|
Test PASSed. |
|
This is a good catch, but perhaps the real bug here is that we are overriding the |
|
I heard from @liancheng about some plan of using two SchemaRDDs from different sqlContext together. Is the override sqlContext designed to support it? @liancheng since you added it in liancheng@3784105 |
|
@zsxwing I guess what you mentioned is the plan to support multiple data sources via the newly introduced external data source API? ��The commit you mentioned is irrelevant. In that commit I just want to ensure the |
Yes.
In which case, it won't be |
|
Ah I see you point, so here we referenced a field overriden by subclass in the constructor of the parent class. Then I think it's generally not safe to allow |
|
Yes, we should remove it. |
|
Test build #24451 has started for PR 3660 at commit
|
|
Done. Also updated the description of this PR and JIRA. |
|
Test build #24451 has finished for PR 3660 at commit
|
|
Test PASSed. |
|
Thanks! Merged to master. |
The problem is
codegenEnabledisval, but it uses avalsqlContext, which can be override by subclasses. Here is a simple example to show this issue.We should make
sqlContextfinalto prevent subclasses from overriding it incorrectly.