SparkSQL
¶
Source code in docs_src/capo_glue/types/spark_sql.py
inputs
instance-attribute
¶
inputs: ManyInputs
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.
output_schemas
instance-attribute
¶
output_schemas: NotRequired[GlueSchemas]
Specifies the data schema for the SparkSQL transform.
sql_aliases
instance-attribute
¶
sql_aliases: SqlAliases
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.