Struct aws_sdk_glue::types::SnowflakeNodeData
source · #[non_exhaustive]pub struct SnowflakeNodeData {Show 21 fields
pub source_type: Option<String>,
pub connection: Option<Option>,
pub schema: Option<String>,
pub table: Option<String>,
pub database: Option<String>,
pub temp_dir: Option<String>,
pub iam_role: Option<Option>,
pub additional_options: Option<HashMap<String, String>>,
pub sample_query: Option<String>,
pub pre_action: Option<String>,
pub post_action: Option<String>,
pub action: Option<String>,
pub upsert: bool,
pub merge_action: Option<String>,
pub merge_when_matched: Option<String>,
pub merge_when_not_matched: Option<String>,
pub merge_clause: Option<String>,
pub staging_table: Option<String>,
pub selected_columns: Option<Vec<Option>>,
pub auto_pushdown: bool,
pub table_schema: Option<Vec<Option>>,
}Expand description
Specifies configuration for Snowflake nodes in Glue Studio.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source_type: Option<String>Specifies how retrieved data is specified. Valid values: "table", "query".
connection: Option<Option>Specifies a Glue Data Catalog Connection to a Snowflake endpoint.
schema: Option<String>Specifies a Snowflake database schema for your node to use.
table: Option<String>Specifies a Snowflake table for your node to use.
database: Option<String>Specifies a Snowflake database for your node to use.
temp_dir: Option<String>Not currently used.
iam_role: Option<Option>Not currently used.
additional_options: Option<HashMap<String, String>>Specifies additional options passed to the Snowflake connector. If options are specified elsewhere in this node, this will take precedence.
sample_query: Option<String>A SQL string used to retrieve data with the query sourcetype.
pre_action: Option<String>A SQL string run before the Snowflake connector performs its standard actions.
post_action: Option<String>A SQL string run after the Snowflake connector performs its standard actions.
action: Option<String>Specifies what action to take when writing to a table with preexisting data. Valid values: append, merge, truncate, drop.
upsert: boolUsed when Action is append. Specifies the resolution behavior when a row already exists. If true, preexisting rows will be updated. If false, those rows will be inserted.
merge_action: Option<String>Specifies a merge action. Valid values: simple, custom. If simple, merge behavior is defined by MergeWhenMatched and MergeWhenNotMatched. If custom, defined by MergeClause.
merge_when_matched: Option<String>Specifies how to resolve records that match preexisting data when merging. Valid values: update, delete.
merge_when_not_matched: Option<String>Specifies how to process records that do not match preexisting data when merging. Valid values: insert, none.
merge_clause: Option<String>A SQL statement that specifies a custom merge behavior.
staging_table: Option<String>The name of a staging table used when performing merge or upsert append actions. Data is written to this table, then moved to table by a generated postaction.
selected_columns: Option<Vec<Option>>Specifies the columns combined to identify a record when detecting matches for merges and upserts. A list of structures with value, label and description keys. Each structure describes a column.
auto_pushdown: boolSpecifies whether automatic query pushdown is enabled. If pushdown is enabled, then when a query is run on Spark, if part of the query can be "pushed down" to the Snowflake server, it is pushed down. This improves performance of some queries.
table_schema: Option<Vec<Option>>Manually defines the target schema for the node. A list of structures with value , label and description keys. Each structure defines a column.
Implementations§
source§impl SnowflakeNodeData
impl SnowflakeNodeData
sourcepub fn source_type(&self) -> Option<&str>
pub fn source_type(&self) -> Option<&str>
Specifies how retrieved data is specified. Valid values: "table", "query".
sourcepub fn connection(&self) -> Option<&Option>
pub fn connection(&self) -> Option<&Option>
Specifies a Glue Data Catalog Connection to a Snowflake endpoint.
sourcepub fn schema(&self) -> Option<&str>
pub fn schema(&self) -> Option<&str>
Specifies a Snowflake database schema for your node to use.
sourcepub fn additional_options(&self) -> Option<&HashMap<String, String>>
pub fn additional_options(&self) -> Option<&HashMap<String, String>>
Specifies additional options passed to the Snowflake connector. If options are specified elsewhere in this node, this will take precedence.
sourcepub fn sample_query(&self) -> Option<&str>
pub fn sample_query(&self) -> Option<&str>
A SQL string used to retrieve data with the query sourcetype.
sourcepub fn pre_action(&self) -> Option<&str>
pub fn pre_action(&self) -> Option<&str>
A SQL string run before the Snowflake connector performs its standard actions.
sourcepub fn post_action(&self) -> Option<&str>
pub fn post_action(&self) -> Option<&str>
A SQL string run after the Snowflake connector performs its standard actions.
sourcepub fn action(&self) -> Option<&str>
pub fn action(&self) -> Option<&str>
Specifies what action to take when writing to a table with preexisting data. Valid values: append, merge, truncate, drop.
sourcepub fn upsert(&self) -> bool
pub fn upsert(&self) -> bool
Used when Action is append. Specifies the resolution behavior when a row already exists. If true, preexisting rows will be updated. If false, those rows will be inserted.
sourcepub fn merge_action(&self) -> Option<&str>
pub fn merge_action(&self) -> Option<&str>
Specifies a merge action. Valid values: simple, custom. If simple, merge behavior is defined by MergeWhenMatched and MergeWhenNotMatched. If custom, defined by MergeClause.
sourcepub fn merge_when_matched(&self) -> Option<&str>
pub fn merge_when_matched(&self) -> Option<&str>
Specifies how to resolve records that match preexisting data when merging. Valid values: update, delete.
sourcepub fn merge_when_not_matched(&self) -> Option<&str>
pub fn merge_when_not_matched(&self) -> Option<&str>
Specifies how to process records that do not match preexisting data when merging. Valid values: insert, none.
sourcepub fn merge_clause(&self) -> Option<&str>
pub fn merge_clause(&self) -> Option<&str>
A SQL statement that specifies a custom merge behavior.
sourcepub fn staging_table(&self) -> Option<&str>
pub fn staging_table(&self) -> Option<&str>
The name of a staging table used when performing merge or upsert append actions. Data is written to this table, then moved to table by a generated postaction.
sourcepub fn selected_columns(&self) -> &[Option]
pub fn selected_columns(&self) -> &[Option]
Specifies the columns combined to identify a record when detecting matches for merges and upserts. A list of structures with value, label and description keys. Each structure describes a column.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .selected_columns.is_none().
sourcepub fn auto_pushdown(&self) -> bool
pub fn auto_pushdown(&self) -> bool
Specifies whether automatic query pushdown is enabled. If pushdown is enabled, then when a query is run on Spark, if part of the query can be "pushed down" to the Snowflake server, it is pushed down. This improves performance of some queries.
sourcepub fn table_schema(&self) -> &[Option]
pub fn table_schema(&self) -> &[Option]
Manually defines the target schema for the node. A list of structures with value , label and description keys. Each structure defines a column.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .table_schema.is_none().
source§impl SnowflakeNodeData
impl SnowflakeNodeData
sourcepub fn builder() -> SnowflakeNodeDataBuilder
pub fn builder() -> SnowflakeNodeDataBuilder
Creates a new builder-style object to manufacture SnowflakeNodeData.
Trait Implementations§
source§impl Clone for SnowflakeNodeData
impl Clone for SnowflakeNodeData
source§fn clone(&self) -> SnowflakeNodeData
fn clone(&self) -> SnowflakeNodeData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SnowflakeNodeData
impl Debug for SnowflakeNodeData
source§impl PartialEq for SnowflakeNodeData
impl PartialEq for SnowflakeNodeData
source§fn eq(&self, other: &SnowflakeNodeData) -> bool
fn eq(&self, other: &SnowflakeNodeData) -> bool
self and other values to be equal, and is used
by ==.