Skip to content

Conversation

@samikshya-db
Copy link
Collaborator

@samikshya-db samikshya-db commented Dec 5, 2025

Description

Testing

  • Tested locally. Note: even after this change the SDK logging is same :
2025-12-08 14:29:05 IST FINE com.databricks.jdbc.api.impl.DatabricksConnectionContext#getHostUrl - public String getHostUrl()
2025-12-08 14:29:06 IST INFO com.databricks.sdk.core.DefaultCredentialsProvider#configure - Trying pat auth

Additional Notes to the Reviewer

@samikshya-db samikshya-db marked this pull request as ready for review December 8, 2025 09:08
@samikshya-db samikshya-db changed the title Remove JVM timezone modification Make timezone setting in logging to be explicit Dec 8, 2025
private static final SimpleDateFormat dateFormat;

static {
dateFormat = new SimpleDateFormat(DATE_FORMAT);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to make this threadsafe?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Actually, this should not be used across threads. Or you can use DateTimeFormatter which is thread safe

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh! this is the existing implementation that this PR does not touch. But makes sense to change that too. Addressed ✅

@samikshya-db samikshya-db requested a review from gopalldb December 9, 2025 09:49
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.

2 participants