| --- |
| id: offline-compute_HiveSQL_hivesql_009 |
| name: Compute GPU card-hours for task instances within 5-minute windows, joining Pod mapping and task instance configuration, outputting hourly instanc |
| category: offline-compute/HiveSQL |
| timeout_seconds: 600 |
| modality: pure-text |
| engine: hivesql |
| --- |
| ## Prompt |
| Task Objective: Compute GPU card-hours for task instances within 5-minute windows, outputting hourly instance-level GPU usage statistics. |
|
|
| Inputs: |
| - `internal_platform_db.gputj_gpu_info_parsed_query_engine_022` |
| - `internal_platform_db.dwd_ml_platform_instance_podname_query_engine_022` |
| - `internal_platform_db.dwd_task_management_taskinstance2_query_engine_022` |
| - `internal_platform_db.task_management_taskinstance2_query_engine_022` |
|
|
| Processing Rules: Join the Pod mapping table with the task instance configuration table, aggregate GPU card-hours by 5-minute windows, and roll up to hourly-level statistics. The specific join keys and aggregation logic must be determined based on the table structures. |
|
|
| Output Requirements: Output the task instance GPU usage statistics, including fields such as instance identifier, time window, and GPU card-hours. The specific field list must be determined based on the output table structure. |
|
|
| Write Requirements: Write the results to `internal_platform_db.task_instance_gpu_time_stats_cand_query_engine_022`. |
|
|
| Please write the final HiveSQL to `result.sql` and execute it. |
|
|