-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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
[SPARK-4292][SQL] Result set iterator bug in JDBC/ODBC #3149
Conversation
Test build #23039 has started for PR 3149 at commit
|
Test build #23039 has finished for PR 3149 at commit
|
Test PASSed. |
To add a regression test for this. |
Hi, @scwf |
@OopsOutOfMemory The And you should be able to reproduce this issue with the current master branch. Note that only SBT build can be used until #3105 and #3103 are merged. |
yes, @OopsOutOfMemory, you can test this with master branch. |
Thanks @liancheng @scwf for explanation. :) |
Test build #23048 has started for PR 3149 at commit
|
Test build #23048 has finished for PR 3149 at commit
|
Test PASSed. |
Actually, this is caused by marmbrus@85872f6#diff-1 and marmbrus@982c035#diff-5 ( which is in #3063 ) |
In #3063, @marmbrus I'm a bit confused here, could you please elaborate on the reason behind this change? Reverting this change should fix this bug, but I'm not sure whether this breaks any other contracts introduced in #3063. |
@scwf Oh, didn't notice you've already pointed this out :) |
Good catch guys, and thanks for adding a test. The comment on I think the right solution here is to avoid using the internal |
@marmbrus, i think you mean |
Yes, correct. |
Hmm, i think |
If the |
Yeah, i think it's ok since in ``SchemaRDD` compute method deal with this. https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/SchemaRDD.scala#L117 |
Test build #23059 has started for PR 3149 at commit
|
Test build #23059 has finished for PR 3149 at commit
|
Test PASSed. |
Thanks! I'm merging this into master and 1.2. |
select * from src, get the wrong result set as follows: ``` ... | 309 | val_309 | | 309 | val_309 | | 309 | val_309 | | 309 | val_309 | | 309 | val_309 | | 309 | val_309 | | 309 | val_309 | | 309 | val_309 | | 309 | val_309 | | 309 | val_309 | | 97 | val_97 | | 97 | val_97 | | 97 | val_97 | | 97 | val_97 | | 97 | val_97 | | 97 | val_97 | | 97 | val_97 | | 97 | val_97 | | 97 | val_97 | | 97 | val_97 | | 97 | val_97 | ... ``` Author: wangfei <wangfei1@huawei.com> Closes #3149 from scwf/SPARK-4292 and squashes the following commits: 1574a43 [wangfei] using result.collect 8b2d845 [wangfei] adding test f64eddf [wangfei] result set iter bug (cherry picked from commit d6e5552) Signed-off-by: Michael Armbrust <michael@databricks.com>
select * from src, get the wrong result set as follows: