Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-50894][SQL] Postgres driver version bump to 42.7.5 #49575

Conversation

vladanvasi-db
Copy link
Contributor

What changes were proposed in this pull request?

In this PR, I propose upgrading the version of PostgreSQL driver version to 42.7.5. More specifically, in this PR, the following regression was introduced:
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.

Regarding the release notes of version 42.7.5, I propose to upgrade the version of the driver, because the behavior of sending queries which set extra_flow_digits when establishing connection was fixed in this version.

Why are the changes needed?

This changes are essential when trying to properly connect to the Redshift instance from OSS.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

N/A.

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions github-actions bot added the BUILD label Jan 20, 2025
Copy link
Member

@MaxGekk MaxGekk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting for CI.

@MaxGekk
Copy link
Member

MaxGekk commented Jan 20, 2025

@vladanvasi-db Could you set proper tag in PR's title, please.

@cloud-fan cloud-fan changed the title [SPARK-50894] Postgres driver version bump to 42.7.5 [SPARK-50894][SQL] Postgres driver version bump to 42.7.5 Jan 21, 2025
@cloud-fan
Copy link
Contributor

The failed yarn test is unrelated, merging to master/4.0!

@cloud-fan cloud-fan closed this in 1cdb918 Jan 21, 2025
cloud-fan pushed a commit that referenced this pull request Jan 21, 2025
### What changes were proposed in this pull request?

In this PR, I propose upgrading the version of `PostgreSQL` driver version to `42.7.5`. More specifically, in this [PR](#47810), the following regression was introduced:
`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.

Regarding the release notes of version [42.7.5](https://github.com/pgjdbc/pgjdbc/releases/tag/REL42.7.5), I propose to upgrade the version of the driver, because the behavior of sending queries which set `extra_flow_digits` when establishing connection was fixed in this version.

### Why are the changes needed?

This changes are essential when trying to properly connect to the Redshift instance from OSS.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

N/A.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #49575 from vladanvasi-db/vladanvasi-db/postrgesql-driver-fix.

Authored-by: Vladan Vasić <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
(cherry picked from commit 1cdb918)
Signed-off-by: Wenchen Fan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants