Struct aws_sdk_glue::model::spark_sql::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for SparkSql.
Implementations§
source§impl Builder
impl Builder
sourcepub fn inputs(self, input: impl Into<String>) -> Self
pub fn inputs(self, input: impl Into<String>) -> Self
Appends an item to inputs.
To override the contents of this collection use set_inputs.
The data inputs identified by their node names. You can associate a table name with each input node to use in the SQL query. The name you choose must meet the Spark SQL naming restrictions.
sourcepub fn set_inputs(self, input: Option<Vec<String>>) -> Self
pub fn set_inputs(self, input: Option<Vec<String>>) -> Self
The data inputs identified by their node names. You can associate a table name with each input node to use in the SQL query. The name you choose must meet the Spark SQL naming restrictions.
sourcepub fn sql_query(self, input: impl Into<String>) -> Self
pub fn sql_query(self, input: impl Into<String>) -> Self
A SQL query that must use Spark SQL syntax and return a single data set.
sourcepub fn set_sql_query(self, input: Option<String>) -> Self
pub fn set_sql_query(self, input: Option<String>) -> Self
A SQL query that must use Spark SQL syntax and return a single data set.
sourcepub fn sql_aliases(self, input: SqlAlias) -> Self
pub fn sql_aliases(self, input: SqlAlias) -> Self
Appends an item to sql_aliases.
To override the contents of this collection use set_sql_aliases.
A list of aliases. An alias allows you to specify what name to use in the SQL for a given input. For example, you have a datasource named "MyDataSource". If you specify From as MyDataSource, and Alias as SqlName, then in your SQL you can do:
select * from SqlName
and that gets data from MyDataSource.
sourcepub fn set_sql_aliases(self, input: Option<Vec<SqlAlias>>) -> Self
pub fn set_sql_aliases(self, input: Option<Vec<SqlAlias>>) -> Self
A list of aliases. An alias allows you to specify what name to use in the SQL for a given input. For example, you have a datasource named "MyDataSource". If you specify From as MyDataSource, and Alias as SqlName, then in your SQL you can do:
select * from SqlName
and that gets data from MyDataSource.
sourcepub fn output_schemas(self, input: GlueSchema) -> Self
pub fn output_schemas(self, input: GlueSchema) -> Self
Appends an item to output_schemas.
To override the contents of this collection use set_output_schemas.
Specifies the data schema for the SparkSQL transform.
sourcepub fn set_output_schemas(self, input: Option<Vec<GlueSchema>>) -> Self
pub fn set_output_schemas(self, input: Option<Vec<GlueSchema>>) -> Self
Specifies the data schema for the SparkSQL transform.