spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SPARK-21446) [SQL] JDBC Postgres fetchsize parameter ignored again
Date Tue, 18 Jul 2017 03:15:00 GMT

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

Apache Spark reassigned SPARK-21446:
------------------------------------

    Assignee: Apache Spark

> [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: Apache Spark
>
> 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


Mime
View raw message