Skip to content

fix(bq jdbc): allow & ignore unknown parameters#12352

Open
logachev wants to merge 3 commits intomainfrom
kirl/parser_no_error
Open

fix(bq jdbc): allow & ignore unknown parameters#12352
logachev wants to merge 3 commits intomainfrom
kirl/parser_no_error

Conversation

@logachev
Copy link
Copy Markdown
Contributor

@logachev logachev commented Apr 1, 2026

Looks like some existing apps provide keys that are not editable by user. At some point we will have an ability to collect such properties & build more permissive map, but for now we will ignore it & log it.

This PR also introduces helper methods for unittests to validate certain log messages were actually logged.

@logachev logachev requested review from a team as code owners April 1, 2026 03:51
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request modifies BigQueryJdbcUrlUtility to log a message instead of throwing an exception when unknown properties are encountered in the JDBC URL, enhancing compatibility with various tools. It also introduces BigQueryJdbcLoggingBaseTest to enable log verification in tests. Review feedback highlights that the logger implementation in BigQueryJdbcUrlUtility incorrectly uses printf-style formatting and suggests using a less aggressive log level. Furthermore, a suggestion was provided to safely access captured logs in tests to avoid potential IndexOutOfBoundsException.

@logachev logachev force-pushed the kirl/parser_no_error branch 3 times, most recently from cf5bb99 to b2fbafb Compare April 1, 2026 06:37
@logachev logachev force-pushed the kirl/parser_no_error branch from b2fbafb to b93e50b Compare April 1, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant