GitHub user huaxingao opened a pull request:
https://github.com/apache/spark/pull/9473
[SPARK-11474][SQL]change fetchSize to fetchsize
In DefaultDataSource.scala, it has
override def createRelation(
sqlContext: SQLContext,
parameters: Map[String, String]): BaseRelation
The parameters is CaseInsensitiveMap.
After this line
parameters.foreach(kv => properties.setProperty(kv._1, kv._2))
properties is set to all lower case key/value pairs and fetchSize becomes
fetchsize.
However, in compute method in JDBCRDD, it has
val fetchSize = properties.getProperty("fetchSize", "0").toInt
so fetchSize value is always 0 and never gets set correctly.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/huaxingao/spark spark-11474
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/9473.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 #9473
----
commit 31e18562643bc8e4e60dd395f5062e5e3d7660a6
Author: Huaxin Gao <[email protected]>
Date: 2015-11-04T07:28:30Z
[SPARK-11474][SQL]change fetchSize to fetchsize
----
---
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]