Skip to content

Conversation

@fuwhu
Copy link
Contributor

@fuwhu fuwhu commented Oct 24, 2019

What changes were proposed in this pull request?

Remove the requirement of fetch_size>=0 from JDBCOptions to allow negative fetch size.

Why are the changes needed?

Namely, to allow data fetch in stream manner (row-by-row fetch) against MySQL database.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Unit test (JDBCSuite)

This closes #26230 .

@srowen
Copy link
Member

srowen commented Oct 24, 2019

OK to test

Copy link
Member

@srowen srowen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine, maybe just simpler. OK pending tests.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I agree. +1, LGTM.

@dongjoon-hyun
Copy link
Member

ok to test

@SparkQA
Copy link

SparkQA commented Oct 24, 2019

Test build #112612 has finished for PR 26244 at commit 4bd6b99.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@dongjoon-hyun
Copy link
Member

Merged to master/2.4.

dongjoon-hyun pushed a commit that referenced this pull request Oct 24, 2019
### What changes were proposed in this pull request?
 Remove the requirement of fetch_size>=0 from JDBCOptions to allow negative fetch size.

### Why are the changes needed?

Namely, to allow data fetch in stream manner (row-by-row fetch) against MySQL database.

### Does this PR introduce any user-facing change?
No

### How was this patch tested?
Unit test (JDBCSuite)

This closes #26230 .

Closes #26244 from fuwhu/SPARK-21287-FIX.

Authored-by: fuwhu <bestwwg@163.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
(cherry picked from commit 92b2529)
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
@maropu
Copy link
Member

maropu commented Oct 25, 2019

oh, I'm late... this one looks nicer and thx!

Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM too. Thanks for quick PR, review and merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants