You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2025/01/21 03:56:00 UTC
[jira] [Resolved] (SPARK-50894) Upgrade postgresql driver to properly connect to Redshift
[ https://issues.apache.org/jira/browse/SPARK-50894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-50894.
---------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
Issue resolved by pull request 49575
[https://github.com/apache/spark/pull/49575]
> 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ć
> Assignee: Vladan Vasić
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
>
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org