spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chutium <teng....@gmail.com>
Subject RE: Data from Mysql using JdbcRDD
Date Mon, 04 Aug 2014 15:39:31 GMT
have a look on this commit:
https://github.com/apache/spark/pull/1612/files#diff-0

try this:

 -    stmt.setLong(1, part.lower)
 -    stmt.setLong(2, part.upper)
 +    val parameterCount = stmt.getParameterMetaData.getParameterCount
 +    if (parameterCount > 0) stmt.setLong(1, part.lower)
 +    if (parameterCount > 1) stmt.setLong(2, part.upper)



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Data-from-Mysql-using-JdbcRDD-tp10994p11331.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org


Mime
View raw message