Skip to content

Conversation

@kokosing
Copy link
Member

@kokosing kokosing commented Aug 25, 2025

When Driver::connect returns null, most likely it catalog is
misconfigured and error message from the checkState was propagated to
the user making looking obscure.

Before:
Query 20250825_145634_00011_9263i failed: Error listing schemas for
catalog postgresql2:
com.google.common.util.concurrent.UncheckedExecutionException:
java.lang.IllegalStateException: Driver returned null connection, make
sure the connection URL 'jdbc:psql://test' is valid for the driver
org.postgresql.Driver@63a777ba

After:
Query 20250825_150832_00003_52kd7 failed: Error listing schemas for
catalog postgresql: Driver returned null connection, make sure the
connection URL 'jdbc:jdbc:postgresql://localhost:5432/tpch' and
credentials are valid

Description

Additional context and related issues

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

## Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Aug 25, 2025
@github-actions github-actions bot added the postgresql PostgreSQL connector label Aug 25, 2025
@kokosing kokosing requested review from homar and wendigo August 25, 2025 15:09
@kokosing kokosing force-pushed the origin/master/001_error-message branch from 763bed4 to a952b7a Compare August 27, 2025 14:22
When Driver::connect returns null, most likely it catalog is
misconfigured and error message from the checkState was propagated to
the user making looking obscure.

Before:
Query 20250825_145634_00011_9263i failed: Error listing schemas for
catalog postgresql2:
com.google.common.util.concurrent.UncheckedExecutionException:
java.lang.IllegalStateException: Driver returned null connection, make
sure the connection URL 'jdbc:psql://test' is valid for the driver
org.postgresql.Driver@63a777ba

After:
Query 20250825_150832_00003_52kd7 failed: Error listing schemas for
catalog postgresql: Driver returned null connection, make sure the
connection URL 'jdbc:jdbc:postgresql://localhost:5432/tpch' and
credentials are valid
@kokosing kokosing force-pushed the origin/master/001_error-message branch from a952b7a to b0e485c Compare August 28, 2025 09:50
@kokosing kokosing merged commit 846e03b into trinodb:master Aug 28, 2025
123 of 124 checks passed
@github-actions github-actions bot added this to the 477 milestone Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed postgresql PostgreSQL connector

Development

Successfully merging this pull request may close these issues.

3 participants