spark_sql
execute_sql_commands(spark_session, commands)
Executes a list of SQL commands on a Spark session.
Source code in spark_on_k8s/airflow/scripts/spark_sql.py
20 21 22 23 24 25 26 27 28 29 |
|
read_sql_file(file_path)
Reads an SQL file and splits commands by semicolon ";".
Source code in spark_on_k8s/airflow/scripts/spark_sql.py
10 11 12 13 14 15 16 17 |
|