-
Notifications
You must be signed in to change notification settings - Fork 34
[PLUGIN-994] Adding setFetchSize to the database plugins #191
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
d9bef18 to
85948ac
Compare
| @Override | ||
| public Map<String, String> getConnectionArguments() { | ||
| Map<String, String> arguments = new HashMap<>(super.getConnectionArguments()); | ||
| // If connected to MySQL > 5.0.2, and setFetchSize() > 0 on a statement, |
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 this should go into getDBSpecificArguments. Also Please add a check for fetch size. If for whatever reason it's <=0 we should not add this argument
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
|
|
||
| @Override | ||
| public Integer getFetchSize() { | ||
| return 0; |
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.
Why don't we add proper fetchSize here?
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
tivv
left a comment
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 cover CloudSQL plugins?
|
I see that CloudSQL plugins descent from io.cdap.plugin.db.batch.source.AbstractDBSource.DBSourceConfig and that one has hard coded "0" as fetch size |
|
Yes, it does cover CloudSQL plugins as discussed offline. |
1cced6f to
749cb0b
Compare
PLUGIN-994