[ https://issues.apache.org/jira/browse/SPARK-50894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vladan Vasić updated SPARK-50894: --------------------------------- Description: In this [PR|https://github.com/apache/spark/pull/47810] the version of `postgresql` driver was upgraded to {{{}42.7.4{}}}. However, this caused one major regression: {{Postgres}} driver was not compatible for connection to the {{Redshift}} Data Source. This happened because the {{42.7.4}} driver version unnecessarily sent {{SET extra_float_digits = 3}} queries to the destination data source when establishing the connection. However, the upper limit for {{extra_float_digits}} parameter in Redshift is 2. The driver version should be upgraded, because this behavior of sending unnecessary queries which set the {{extra_float_digits}} when establishing connection is fixed in the [42.7.5|https://github.com/pgjdbc/pgjdbc/releases/tag/REL42.7.5] driver version. was: In this [PR|https://github.com/apache/spark/pull/47810] the version of `postgresql` driver was upgraded to `42.7.4`. However, this caused one major regression: {{Postgres}} driver was not compatible for connection to the {{Redshift}} Data Source. This happened because the {{42.7.4}} driver version unnecessarily sent {{SET extra_float_digits = 3}} queries to the destination data source when establishing the connection. However, the upper limit for {{extra_float_digits}} parameter in Redshift is 2. The driver version should be upgraded, because this behavior of sending unnecessary queries which set the {{extra_float_digits}} when establishing connection is fixed in the [42.7.5|https://github.com/pgjdbc/pgjdbc/releases/tag/REL42.7.5] driver version. > Upgrade postgresql driver to properly connect to Redshift > --------------------------------------------------------- > > Key: SPARK-50894 > URL: https://issues.apache.org/jira/browse/SPARK-50894 > Project: Spark > Issue Type: Bug > Components: Build, Spark Core > Affects Versions: 4.0.0 > Reporter: Vladan Vasić > Priority: Major > > In this [PR|https://github.com/apache/spark/pull/47810] the version of > `postgresql` driver was upgraded to {{{}42.7.4{}}}. However, this caused one > major regression: > {{Postgres}} driver was not compatible for connection to the {{Redshift}} > Data Source. This happened because the {{42.7.4}} driver version > unnecessarily sent {{SET extra_float_digits = 3}} queries to the destination > data source when establishing the connection. However, the upper limit for > {{extra_float_digits}} parameter in Redshift is 2. > The driver version should be upgraded, because this behavior of sending > unnecessary queries which set the {{extra_float_digits}} when establishing > connection is fixed in the > [42.7.5|https://github.com/pgjdbc/pgjdbc/releases/tag/REL42.7.5] driver > version. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org