All Products
Search
Document Center

AnalyticDB:SparkBatchSQLStatement

Last Updated:Nov 10, 2025
ParameterTypeDescriptionExample
object

The information about SparkBatchSQLStatement.

ResultUristring

The Object Storage Service (OSS) location where the execution results of the SQL statement are stored. If you do not specify a storage location, null is returned.

oss://yourbucket/result.json
EndTimelong

The execution end timestamp of the SQL statement.

1723521767000
AppIdstring

The ID of the Spark job that executes the SQL statement.

s20240122jsdx****
StatementIdstring

The ID of the SQL statement.

sq1723521767****-0001
Statestring

The execution status of the SQL statement. Valid values:

  • FAILED
  • RUNNING
  • CANCELED
  • PENDING
  • FINISHED
RUNNING
StartTimelong

The execution start timestamp of the SQL statement.

1723521767000
Errorstring

The error message for the SQL statement execution.

table is not found
Codestring

The text of the SQL statement.

SELECT 100
Resultstring

The execution result of the SQL statement. The content is in the response format of the DataFrame Show statement in Spark.

+---+-----+ |age| name| +---+-----+ | 14| Tom| | 23|Alice| +---+-----+