All Products
Search
Document Center

AnalyticDB:SparkBatchSQLStatement

Last Updated:Aug 28, 2026

Parameter

Type

Description

Example

object

The SparkBatchSQLStatement return structure.

ResultUri

string

The OSS path where SQL execution results are stored. If no storage location is specified, null is returned.

oss://yourbucket/result.json

EndTime

integer

The timestamp when SQL execution ended.

1723521767000

AppId

string

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

s20240122jsdx****

StatementId

string

The ID of the SQL statement.

sq1723521767****-0001

State

string

The execution status of the SQL statement. Valid values:

  • FAILED

  • RUNNING

  • CANCELED

  • PENDING

  • FINISHED

RUNNING

StartTime

integer

The timestamp when SQL execution started.

1723521767000

Error

string

The error message returned if the SQL statement fails to run.

table is not found

Code

string

The SQL statement text.

SELECT 100

Result

string

The SQL execution result, formatted as the output of the DataFrame Show statement in Spark.

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