You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Albert Jang (JIRA)" <ji...@apache.org> on 2017/07/18 00:03:00 UTC

[jira] [Updated] (SPARK-21446) [SQL] JDBC Postgres fetchsize parameter ignored again

     [ https://issues.apache.org/jira/browse/SPARK-21446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Albert Jang updated SPARK-21446:
--------------------------------
    Description: 
This bug is fixed in https://github.com/apache/spark/pull/9861
but reappears in spark 2.1 +
The following code may not be executed in org.apache.spark.sql.jdbc.PostgresDialect because "properties" is "asConnectionProperties" but "asConnectionProperties" can not have "fetchsize"
{code:java}
// Some comments here
if (properties.getOrElse(JDBCOptions.JDBC_BATCH_FETCH_SIZE, "0").toInt > 0) {
      connection.setAutoCommit(false)
}
{code}
 

  was:
This bug is fixed in https://github.com/apache/spark/pull/9861
but reappears in spark 2.11 +
The following code may not be executed in org.apache.spark.sql.jdbc.PostgresDialect because "properties" is "asConnectionProperties" but "asConnectionProperties" can not have "fetchsize"
{code:java}
// Some comments here
if (properties.getOrElse(JDBCOptions.JDBC_BATCH_FETCH_SIZE, "0").toInt > 0) {
      connection.setAutoCommit(false)
}
{code}
 


> [SQL] JDBC Postgres fetchsize parameter ignored again
> -----------------------------------------------------
>
>                 Key: SPARK-21446
>                 URL: https://issues.apache.org/jira/browse/SPARK-21446
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.1.0, 2.1.1, 2.2.0
>            Reporter: Albert Jang
>
> This bug is fixed in https://github.com/apache/spark/pull/9861
> but reappears in spark 2.1 +
> The following code may not be executed in org.apache.spark.sql.jdbc.PostgresDialect because "properties" is "asConnectionProperties" but "asConnectionProperties" can not have "fetchsize"
> {code:java}
> // Some comments here
> if (properties.getOrElse(JDBCOptions.JDBC_BATCH_FETCH_SIZE, "0").toInt > 0) {
>       connection.setAutoCommit(false)
> }
> {code}
>  



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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