Skip to content

Commit

Permalink
update snowflake common
Browse files Browse the repository at this point in the history
  • Loading branch information
xzhseh committed Mar 7, 2024
1 parent 4f7cac9 commit e9da466
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions src/connector/src/sink/snowflake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,17 @@ pub const SNOWFLAKE_SINK: &str = "snowflake";
// TODO: add comments
#[derive(Deserialize, Debug, Clone, WithOptions)]
pub struct SnowflakeCommon {
#[serde(rename = "snowflake.url")]
pub url: String,

#[serde(rename = "snowflake.database")]
pub database: String,

#[serde(rename = "snowflake.user")]
pub user: String,
#[serde(rename = "snowflake.database.schema")]
pub schema: String,

#[serde(rename = "snowflake.database.schema.pipe")]
pub pipe: String,

#[serde(rename = "snowflake.account")]
pub account: String,

#[serde(rename = "snowflake.private.key")]
pub private_key: String,
Expand All @@ -53,6 +56,12 @@ pub struct SnowflakeCommon {

#[serde(rename = "snowflake.role")]
pub role: String,

#[serde(rename = "snowflake.jwt_token")]
pub jwt_token: String,

#[serde(rename = "snowflake.s3")]
pub s3: String,
}

#[serde_as]
Expand Down

0 comments on commit e9da466

Please sign in to comment.