Skip to content

[SNOW-3249917] JDBC removal Step 8a: Replicate StageInfo, RemoteStoreFileEncryptionMaterial#1120

Merged
sfc-gh-ggeng merged 1 commit intomasterfrom
jdbc-removal-step8a-stage-info
Mar 28, 2026
Merged

[SNOW-3249917] JDBC removal Step 8a: Replicate StageInfo, RemoteStoreFileEncryptionMaterial#1120
sfc-gh-ggeng merged 1 commit intomasterfrom
jdbc-removal-step8a-stage-info

Conversation

@sfc-gh-ggeng
Copy link
Copy Markdown
Contributor

Summary

Verbatim replication of two data classes from JDBC:

  • StageInfo (229 lines) — stage descriptor with StageType enum, credentials, region, endpoint, presigned URL
  • RemoteStoreFileEncryptionMaterial (46 lines) — encryption key holder (from snowflake-common, decompiled)

Import swaps deferred — StageInfo is tightly coupled with SnowflakeFileTransferMetadataV1 (metadata.getStageInfo() returns JDBC's StageInfo). All types must be swapped together when the upload path is replaced.

Stacked on #1119.

Replication Verification Diff Report

StageInfo

JDBC source : net/snowflake/client/jdbc/cloud/storage/StageInfo.java @ v3.25.1
Ingest copy : src/main/java/net/snowflake/ingest/streaming/internal/fileTransferAgent/StageInfo.java

Permitted differences (mechanical):

  • Package declaration changed
  • @SnowflakeJdbcInternalApi annotations removed

Unexpected differences: NONE

RemoteStoreFileEncryptionMaterial

JDBC source : net/snowflake/client/jdbc/internal/snowflake/common/core/RemoteStoreFileEncryptionMaterial.java (from snowflake-common, no public source)
Ingest copy : src/main/java/net/snowflake/ingest/streaming/internal/fileTransferAgent/RemoteStoreFileEncryptionMaterial.java

Permitted differences (mechanical):

  • Package declaration changed

Unexpected differences: NONE (decompiled from JDBC thin jar, verbatim fields/methods)

Test plan

  • mvn compiler:compile passes
  • ./format.sh passes
  • Full test suite

🤖 Generated with Claude Code

@sfc-gh-ggeng sfc-gh-ggeng force-pushed the jdbc-removal-step7b-replace-file-transfer-agent branch from eed1c75 to 9701b54 Compare March 27, 2026 21:42
@sfc-gh-ggeng sfc-gh-ggeng force-pushed the jdbc-removal-step8a-stage-info branch from 9cdb0d1 to 5cde2f9 Compare March 27, 2026 21:43
Base automatically changed from jdbc-removal-step7b-replace-file-transfer-agent to master March 27, 2026 22:54
…FileEncryptionMaterial

Verbatim replication of two data classes from JDBC:
- StageInfo (229 lines) — stage descriptor with StageType enum, credentials,
  region, endpoint, presigned URL. @SnowflakeJdbcInternalApi removed.
- RemoteStoreFileEncryptionMaterial (46 lines) — encryption key holder.
  From snowflake-common (decompiled, no public source).

Import swaps deferred — StageInfo is tightly coupled with
SnowflakeFileTransferMetadataV1 (metadata.getStageInfo() returns JDBC's
StageInfo). Both must be swapped together in Step 8b.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sfc-gh-ggeng sfc-gh-ggeng force-pushed the jdbc-removal-step8a-stage-info branch from 5cde2f9 to 19baea1 Compare March 28, 2026 20:40
@sfc-gh-ggeng sfc-gh-ggeng enabled auto-merge (squash) March 28, 2026 20:45
@sfc-gh-ggeng sfc-gh-ggeng merged commit cf96fa8 into master Mar 28, 2026
47 of 52 checks passed
@sfc-gh-ggeng sfc-gh-ggeng deleted the jdbc-removal-step8a-stage-info branch March 28, 2026 21:51
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