Struct aws_sdk_glue::model::SparkSql
source · #[non_exhaustive]pub struct SparkSql { /* private fields */ }Expand description
Specifies a transform where you enter a SQL query using Spark SQL syntax to transform the data. The output is a single DynamicFrame.
Implementations§
source§impl SparkSql
impl SparkSql
sourcepub fn inputs(&self) -> Option<&[String]>
pub fn inputs(&self) -> Option<&[String]>
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) -> Option<&str>
pub fn sql_query(&self) -> Option<&str>
A SQL query that must use Spark SQL syntax and return a single data set.
sourcepub fn sql_aliases(&self) -> Option<&[SqlAlias]>
pub fn sql_aliases(&self) -> Option<&[SqlAlias]>
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) -> Option<&[GlueSchema]>
pub fn output_schemas(&self) -> Option<&[GlueSchema]>
Specifies the data schema for the SparkSQL transform.