submitSparkSql(options)
Submit a Spark SQL query that writes its result to an Iceberg output table. Returns run info immediately; use getRun() or submitSparkSqlAndWait() to poll status.
Parameters
string
required
Job namespace.
string
required
Job name.
string
required
The Spark SQL query to execute.
string
required
The Iceberg table the query result is written to.
string
default:"OVERWRITE"
OVERWRITE or APPEND. Case-insensitive on input.SparkMachineType
default:"spark.1.b"
Driver machine type.
SparkMachineType
default:"spark.1.b"
Executor machine type.
number
default:"2"
Number of executors, from 1 to 20.
Return type: SparkSqlSubmitResponse
submitSparkSqlAndWait(options)
Submit a Spark SQL query and poll until the run reaches a terminal state (COMPLETE, FAIL, or ABORT). Throws an error if the timeout is exceeded.
submitSparkSql options plus:
number
default:"10000"
Milliseconds between status polls.
number
default:"600000"
Maximum time to wait in milliseconds before throwing a timeout error.