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

[jira] [Resolved] (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 ]

Xiao Li resolved SPARK-21446.
-----------------------------
       Resolution: Fixed
    Fix Version/s: 2.3.0
                   2.2.1
                   2.1.2

> [SQL] JDBC Postgres fetchsize parameter ignored again
> -----------------------------------------------------
>
>                 Key: SPARK-21446
>                 URL: https://issues.apache.org/jira/browse/SPARK-21446
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.1.0, 2.1.1, 2.2.0
>            Reporter: Albert Jang
>            Assignee: Albert Jang
>             Fix For: 2.1.2, 2.2.1, 2.3.0
>
>
> This bug was 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}
> 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