spark_on_k8s.sql.runner¶
Implementation reference. These symbols describe how the project works; their presence here does not make them supported application imports. Use the documented entry points and support policy.
execute_sql_commands(spark_session, commands, locations=None)
¶
Execute sequentially, reporting source coordinates without logging query text.
Source code in spark_on_k8s/sql/runner.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | |
read_locations(query_file)
¶
Read optional source coordinates; legacy arrays remain supported.
Source code in spark_on_k8s/sql/runner.py
22 23 24 25 26 27 28 29 | |
read_sql_file(file_path)
¶
Read the JSON array of SQL statements prepared by the SQL submission helpers.
Source code in spark_on_k8s/sql/runner.py
13 14 15 16 17 18 19 | |
validate_locations(locations)
¶
Reject malformed optional metadata before any SQL executes.
Source code in spark_on_k8s/sql/runner.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | |