Skip to content

fix(bqjdbc): Pass connection ID to DataType class loggers#13197

Merged
Neenu1995 merged 5 commits into
mainfrom
ns/fix-datatype-logs
May 15, 2026
Merged

fix(bqjdbc): Pass connection ID to DataType class loggers#13197
Neenu1995 merged 5 commits into
mainfrom
ns/fix-datatype-logs

Conversation

@Neenu1995
Copy link
Copy Markdown
Contributor

No description provided.

@Neenu1995 Neenu1995 requested review from a team as code owners May 14, 2026 18:58
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 refactors the logging infrastructure within the BigQuery JDBC driver to improve context tracking and performance. Key changes include passing logger instances through the coercion and result set layers, enhancing BigQueryJdbcResultSetLogger to include thread IDs and source class names, and adding entry/exit logging in BigQueryJdbcContextProxy. Feedback for BigQueryJdbcContextProxy suggests optimizing the new logging logic by caching class and method names in local variables to reduce overhead on the hot path.

Copy link
Copy Markdown
Contributor

@keshavdandeva keshavdandeva left a comment

Choose a reason for hiding this comment

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

We should add some form of test (or update existing ones?) for verifying connectionId propagation

@Neenu1995
Copy link
Copy Markdown
Contributor Author

Added tests

@Neenu1995 Neenu1995 enabled auto-merge (squash) May 15, 2026 18:06
@Neenu1995 Neenu1995 merged commit ce9c504 into main May 15, 2026
167 of 168 checks passed
@Neenu1995 Neenu1995 deleted the ns/fix-datatype-logs branch May 15, 2026 18:52
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.

3 participants