GitHub user mariusvniekerk opened a pull request:
https://github.com/apache/spark/pull/9861
[SPARK-11881][SQL] Fix for postgresql fetchsize > 0
Reference:
https://jdbc.postgresql.org/documentation/head/query.html#query-with-cursor
In order for PostgreSQL to honor the fetchSize non-zero setting, its
Connection.autoCommit needs to be set to false. Otherwise, it will just quietly
ignore the fetchSize setting.
This adds a new side-effecting dialect specific beforeFetch method that
will fire before a select query is ran.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mariusvniekerk/spark SPARK-11881
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/9861.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #9861
----
commit 464976670c2857a972b38aa4d32396915d7e0c0a
Author: mariusvniekerk <[email protected]>
Date: 2015-11-20T14:34:31Z
[SPARK-11881][SQL] Fix for postgresql fetchsize > 0
Reference:
https://jdbc.postgresql.org/documentation/head/query.html#query-with-cursor
In order for PostgreSQL to honor the fetchSize non-zero setting, its
Connection.autoCommit needs to be set to false. Otherwise, it will just quietly
ignore the fetchSize setting.
This adds a new side-effecting dialect specific beforeFetch method that
will fire before a select query is ran.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]