Skip to content

[SNOW-3249917] JDBC removal Step 10b: Swap SFException imports#1134

Merged
sfc-gh-ggeng merged 2 commits intomasterfrom
jdbc-removal-step10b-swap-remaining
Apr 2, 2026
Merged

[SNOW-3249917] JDBC removal Step 10b: Swap SFException imports#1134
sfc-gh-ggeng merged 2 commits intomasterfrom
jdbc-removal-step10b-swap-remaining

Conversation

@sfc-gh-ggeng
Copy link
Copy Markdown
Contributor

Summary

Mechanical import swaps — remove SFException JDBC imports from files where the replicated SFException is now in the same package:

  • SnowflakeSQLException: remove import net.snowflake.client.core.SFException (same package)
  • SnowflakeSQLLoggedException: remove import net.snowflake.client.core.SFException (same package)
  • TelemetryEvent: remove import net.snowflake.client.core.SFException (same package)

ExecTimeTelemetryData and HttpResponseContextDto imports in SnowflakeGCSClient NOT swapped — they interact with JDBC's RestRequest.executeWithRetries() which expects JDBC types.

Diff report

All changes are mechanical import removals (class now in same package).

Unexpected differences: NONE

Test plan

  • mvn compiler:compile passes
  • CI passes

🤖 Generated with Claude Code

@sfc-gh-ggeng sfc-gh-ggeng requested review from a team as code owners April 1, 2026 23:44
@sfc-gh-ggeng sfc-gh-ggeng force-pushed the jdbc-removal-step10a-replicate-remaining branch from 279c755 to 939fdf3 Compare April 2, 2026 05:35
@sfc-gh-ggeng sfc-gh-ggeng force-pushed the jdbc-removal-step10b-swap-remaining branch 2 times, most recently from b5ccf78 to 72f5e83 Compare April 2, 2026 09:14
@sfc-gh-ggeng sfc-gh-ggeng force-pushed the jdbc-removal-step10a-replicate-remaining branch from 939fdf3 to 99b0353 Compare April 2, 2026 09:14
Base automatically changed from jdbc-removal-step10a-replicate-remaining to master April 2, 2026 19:46
sfc-gh-ggeng and others added 2 commits April 2, 2026 19:52
Mechanical import swaps — remove SFException JDBC imports from files
where the replicated SFException is now in the same package:

- SnowflakeSQLException: remove import (SFException in same package)
- SnowflakeSQLLoggedException: remove import (SFException in same package)
- TelemetryEvent: remove import (SFException in same package)

ExecTimeTelemetryData and HttpResponseContextDto imports in
SnowflakeGCSClient NOT swapped — they interact with JDBC's
RestRequest.executeWithRetries() which expects JDBC types.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Steps 1-9a, 9b-prep: MERGED
- Steps 9b, 9c, 10a, 10b: Open with PRs
- Step 10c: Remove SFSession/SFBaseSession (always null, not replicable)
- Step 10d: Demote JDBC to test scope (27 remaining imports with
  massive dependency chains)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sfc-gh-ggeng sfc-gh-ggeng force-pushed the jdbc-removal-step10b-swap-remaining branch from 72f5e83 to 0cd4046 Compare April 2, 2026 19:56
@sfc-gh-ggeng sfc-gh-ggeng enabled auto-merge (squash) April 2, 2026 19:57
@sfc-gh-ggeng sfc-gh-ggeng merged commit 9c23481 into master Apr 2, 2026
47 of 52 checks passed
@sfc-gh-ggeng sfc-gh-ggeng deleted the jdbc-removal-step10b-swap-remaining branch April 2, 2026 21: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