- Documentation
Lake AI Service
API reference: control plane
Storage Optimization
ListOptimizerTasks - Query optimizer task list
Storage Optimization
ListOptimizerTasks - Query optimizer task list
ListOptimizerTasks - Query optimizer task list
Query optimizer task list
Debug
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
Request parameters
Only the request parameters specific to this API and some common parameters are listed below. For more information, see Common parameters. Action string required Example value: ListOptimizerTasks
The operation to be performed, value: ListOptimizerTasks.
Version string required Example value: 2024-04-30
API version, value: 2024-04-30.
CatalogName string required Example value: hive
Catalog name
SchemaName string required Example value: default
Schema/DB name
TableName string required Example value: tbl
Table name
Type string required Example value: COMPACTION
Optimization type
TaskStatus string[] Optional Example value: Running
Task status list
NextToken string Optional Example value: 0
Pagination token
MaxResults long Optional Example value: 10
Page size
Response parameters
Only the response parameters specific to this API are listed below. For more information, see Response structure. Items object[] Example value: {}
Task list
CompactionTask object
Compaction task
OptimizerId long Example value: 1
Optimizer ID
TaskId long Example value: 1234567890
Task ID
JobId string Example value: job-xxx
Job ID
LogUrl string Example value: http://log
Log link
Status string Example value: Running
Status
StartTime long Example value: 0
Start time
EndTime long Example value: 0
End time
PreFragmentNumber long Example value: 0
Number of fragments before optimization
PreFileNumber long Example value: 0
Number of files before optimization
PostFragmentNumber long Example value: 0
Number of fragments after optimization
PostFileNumber long Example value: 0
Number of files after optimization
PartitionRetentionTask object
Partition retention task
OptimizerId long Example value: 1
Optimizer ID
TaskId long Example value: 1234567890
Task ID
JobId string Example value: job-xxx
Job ID
Status string Example value: Running
Status
LogUrl string Example value: http://log
Log link
StartTime long Example value: 0
Start time
EndTime long Example value: 0
End time
SnapshotRetentionTask object
Snapshot retention task
OptimizerId long Example value: 1
Optimizer ID
TaskId long Example value: 1234567890
Task ID
JobId string Example value: job-xxx
Job ID
Status string Example value: Running
Status
DeletedFileCount long Example value: 0
Number of deleted files
LogUrl string Example value: http://log
Log link
StartTime long Example value: 0
Start time
EndTime long Example value: 0
End time
OrphanFileDeletionTask object
Orphan file cleanup task
OptimizerId long Example value: 1
Optimizer ID
TaskId long Example value: 1234567890
Task ID
JobId string Example value: job-xxx
Job ID
Status string Example value: Running
Status
CleanedFileSize long Example value: 0
Cleaned file size
LogUrl string Example value: http://log
Log link
StartTime long Example value: 0
Start time
EndTime long Example value: 0
End time
TotalCount long Example value: 0
Total count
NextToken string Example value: 0
Next page token
MaxResults long Example value: 10
Page size
Request example
Response example
Error codes
The table below lists the error codes related to the business logic of this API. For common error codes, see the Common error codes documentation. Last updated: 2026.05.18 20:10:08