-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SNOW-1483230 Parameter support & disable blob encryption for new tabl…
…e format (#801)
- Loading branch information
1 parent
6632c84
commit b4b84b8
Showing
16 changed files
with
507 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/main/java/net/snowflake/ingest/streaming/internal/InternalParameterProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright (c) 2024 Snowflake Computing Inc. All rights reserved. | ||
*/ | ||
|
||
package net.snowflake.ingest.streaming.internal; | ||
|
||
/** A class to provide non-configurable constants depends on Iceberg or non-Iceberg mode */ | ||
class InternalParameterProvider { | ||
private final boolean isIcebergMode; | ||
|
||
InternalParameterProvider(boolean isIcebergMode) { | ||
this.isIcebergMode = isIcebergMode; | ||
} | ||
|
||
boolean getEnableChunkEncryption() { | ||
// When in Iceberg mode, chunk encryption is disabled. Otherwise, it is enabled. Since Iceberg | ||
// mode does not need client-side encryption. | ||
return !isIcebergMode; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.