| CREATE DATABASE IF NOT EXISTS internal_platform_db; |
|
|
| |
| CREATE TABLE IF NOT EXISTS internal_platform_db.notebook_span_info_query_engine_024 ( |
| databus_imp_date STRING, |
| trace_id STRING, |
| span_kind STRING, |
| error_code STRING, |
| service_name STRING, |
| message STRING, |
| parent_span_id STRING, |
| span_name STRING, |
| duration BIGINT, |
| span_id STRING, |
| space_id STRING, |
| span_type STRING, |
| start_time STRING, |
| end_time STRING, |
| service_instance STRING, |
| status_code INT, |
| datawd_project_id STRING, |
| datawd_task_id STRING, |
| datawd_task_instance_id STRING, |
| compute_type STRING |
| ) STORED AS ORC; |
|
|
| INSERT INTO TABLE internal_platform_db.notebook_span_info_query_engine_024 VALUES |
| ('2026050700','trace001','','','notebook-runner','','','runner.killed',5000,'s1','','','1746576000000','1746576005000','',2,'proj1','task1','inst1','ray'), |
| ('2026050700','trace001','','','notebook-runner','','','runner.start',1000,'s2','','','1746575990000','1746575991000','',0,'proj1','task1','inst1','ray'), |
| ('2026050700','trace001','','','notebook-runner','','','execute.code',4000,'s3','','','1746576001000','1746576005000','',0,'proj1','task1','inst1','ray'), |
| ('2026050700','trace001','','','notebook-runner','','','set.permanent.compute',2000,'s4','','','1746575992000','1746575994000','',0,'proj1','task1','inst1','ray'), |
| ('2026050700','trace002','','','notebook-runner','','','runner.killed',3000,'s5','','','1746576100000','1746576103000','',2,'proj2','task2','inst2','ray'), |
| ('2026050700','trace002','','','notebook-runner','','','runner.start',500,'s6','','','1746576090000','1746576090500','',0,'proj2','task2','inst2','ray'), |
| ('2026050700','trace002','','','notebook-runner','','','client.execute.code',2500,'s7','','','1746576100500','1746576103000','',0,'proj2','task2','inst2','ray'), |
| ('2026050700','trace002','','','notebook-runner','','','create.non.permanent.compute',1500,'s8','','','1746576091000','1746576092500','',0,'proj2','task2','inst2','ray'), |
| ('2026050700','trace003','','','notebook-runner','','','runner.execute',10000,'s9','','','1746576200000','1746576210000','',0,'proj3','task3','inst3','ray'), |
| ('2026050700','trace003','','','notebook-runner','','','runner.killed',0,'s10','','','1746576200000','1746576200000','',2,'proj3','task3','inst3','ray'); |
|
|
| |
| CREATE TABLE IF NOT EXISTS internal_platform_db.dwd_gputj_service_instance_map_query_engine_024 ( |
| dt STRING, |
| service_name STRING, |
| instance_uuid STRING, |
| service_id BIGINT, |
| version_id BIGINT, |
| `desc` STRING, |
| create_time DOUBLE, |
| update_time DOUBLE, |
| workload_name STRING |
| ) STORED AS ORC; |
|
|
| INSERT INTO TABLE internal_platform_db.dwd_gputj_service_instance_map_query_engine_024 VALUES |
| ('2026050700','svc1','uuid001',1001,1,'',0.0,0.0,'wl1'), |
| ('2026050700','svc2','uuid002',1002,1,'',0.0,0.0,'wl2'); |
|
|
| |
| CREATE TABLE IF NOT EXISTS internal_platform_db.dwd_ml_platform_instance_podname_query_engine_024 ( |
| dt STRING, |
| instance_uuid STRING, |
| pod_name STRING, |
| pod_phase STRING, |
| pod_create_time BIGINT, |
| pod_update_time BIGINT, |
| namespace STRING, |
| trial_job_name STRING, |
| create_time BIGINT, |
| modify_time BIGINT, |
| fix_modify_time BIGINT |
| ) STORED AS ORC; |
|
|
| INSERT INTO TABLE internal_platform_db.dwd_ml_platform_instance_podname_query_engine_024 VALUES |
| ('2026050700','uuid001','pod-abc-001','Running',0,0,'ns1','',0,0,0), |
| ('2026050700','uuid002','pod-xyz-002','Running',0,0,'ns2','',0,0,0); |
|
|
| |
| CREATE TABLE IF NOT EXISTS internal_platform_db.gputj_gpu_info_parsed_agg_1min_query_engine_024 ( |
| dt STRING, |
| thedate STRING, |
| pod_name STRING, |
| node STRING, |
| pkg_agg_time STRING, |
| namespace STRING, |
| container STRING, |
| reason STRING, |
| instance STRING, |
| node_ip STRING, |
| asset_id STRING, |
| cluster_type STRING, |
| source STRING, |
| pkg_time STRING, |
| cluster_display_name STRING, |
| mountpoint STRING, |
| node_role STRING, |
| cluster_id STRING, |
| zone STRING, |
| gpu_name STRING, |
| cpu_type STRING, |
| karmada STRING, |
| state STRING, |
| uuid STRING, |
| fstype STRING, |
| `group` STRING, |
| dedicated STRING, |
| business STRING, |
| resource STRING, |
| hostname STRING, |
| gpu STRING, |
| modelname STRING, |
| unit STRING, |
| `condition` STRING, |
| container_name STRING, |
| exported_namespace STRING, |
| job STRING, |
| device STRING, |
| instance_type STRING, |
| caelus_type STRING, |
| status STRING, |
| k8s_dcgm_fi_dev_fb_util_max DOUBLE, |
| k8s_dcgm_fi_dev_fb_util_min DOUBLE, |
| k8s_dcgm_fi_dev_fb_util_sum DOUBLE, |
| k8s_dcgm_fi_dev_fb_util_count BIGINT, |
| dcgm_fi_dev_gpu_util_max DOUBLE, |
| dcgm_fi_dev_gpu_util_min DOUBLE, |
| dcgm_fi_dev_gpu_util_sum DOUBLE, |
| dcgm_fi_dev_gpu_util_count BIGINT, |
| k8s_pod_bs_fs_usage_bytes_usage_max DOUBLE, |
| k8s_pod_bs_fs_usage_bytes_usage_min DOUBLE, |
| k8s_pod_bs_fs_usage_bytes_usage_sum DOUBLE, |
| k8s_pod_bs_fs_usage_bytes_usage_count BIGINT, |
| k8s_pod_bs_fs_usage_bytes_max DOUBLE, |
| k8s_pod_bs_fs_usage_bytes_min DOUBLE, |
| k8s_pod_bs_fs_usage_bytes_sum DOUBLE, |
| k8s_pod_bs_fs_usage_bytes_count BIGINT, |
| k8s_container_bs_mem_working_set_bytes_max DOUBLE, |
| k8s_container_bs_mem_working_set_bytes_min DOUBLE, |
| k8s_container_bs_mem_working_set_bytes_sum DOUBLE, |
| k8s_container_bs_mem_working_set_bytes_count BIGINT, |
| k8s_container_bs_resource_request_mem_max DOUBLE, |
| k8s_container_bs_resource_request_mem_min DOUBLE, |
| k8s_container_bs_resource_request_mem_sum DOUBLE, |
| k8s_container_bs_resource_request_mem_count BIGINT, |
| k8s_container_bs_resource_request_cpu_max DOUBLE, |
| k8s_container_bs_resource_request_cpu_min DOUBLE, |
| k8s_container_bs_resource_request_cpu_sum DOUBLE, |
| k8s_container_bs_resource_request_cpu_count BIGINT, |
| k8s_pod_bs_restart_times_max DOUBLE, |
| k8s_pod_bs_restart_times_min DOUBLE, |
| k8s_pod_bs_restart_times_sum DOUBLE, |
| k8s_pod_bs_restart_times_count BIGINT, |
| k8s_container_resource_request_gpu_max DOUBLE, |
| k8s_container_resource_request_gpu_min DOUBLE, |
| k8s_container_resource_request_gpu_sum DOUBLE, |
| k8s_container_resource_request_gpu_count BIGINT, |
| k8s_container_gpu_used_max DOUBLE, |
| k8s_container_gpu_used_min DOUBLE, |
| k8s_container_gpu_used_sum DOUBLE, |
| k8s_container_gpu_used_count BIGINT, |
| k8s_container_gpu_mem_copy_util_max DOUBLE, |
| k8s_container_gpu_mem_copy_util_min DOUBLE, |
| k8s_container_gpu_mem_copy_util_sum DOUBLE, |
| k8s_container_gpu_mem_copy_util_count BIGINT, |
| dcgm_fi_prof_nvlink_tx_bytes_max DOUBLE, |
| dcgm_fi_prof_nvlink_tx_bytes_min DOUBLE, |
| dcgm_fi_prof_nvlink_tx_bytes_sum DOUBLE, |
| dcgm_fi_prof_nvlink_tx_bytes_count BIGINT, |
| dcgm_fi_prof_nvlink_rx_bytes_max DOUBLE, |
| dcgm_fi_prof_nvlink_rx_bytes_min DOUBLE, |
| dcgm_fi_prof_nvlink_rx_bytes_sum DOUBLE, |
| dcgm_fi_prof_nvlink_rx_bytes_count BIGINT, |
| dcgm_fi_prof_pcie_tx_bytes_max DOUBLE, |
| dcgm_fi_prof_pcie_tx_bytes_min DOUBLE, |
| dcgm_fi_prof_pcie_tx_bytes_sum DOUBLE, |
| dcgm_fi_prof_pcie_tx_bytes_count BIGINT, |
| dcgm_fi_prof_pcie_rx_bytes_max DOUBLE, |
| dcgm_fi_prof_pcie_rx_bytes_min DOUBLE, |
| dcgm_fi_prof_pcie_rx_bytes_sum DOUBLE, |
| dcgm_fi_prof_pcie_rx_bytes_count BIGINT, |
| k8s_namespace_pod_phase_duration_seconds_p95_1h_max DOUBLE, |
| k8s_namespace_pod_phase_duration_seconds_p95_1h_min DOUBLE, |
| k8s_namespace_pod_phase_duration_seconds_p95_1h_sum DOUBLE, |
| k8s_namespace_pod_phase_duration_seconds_p95_1h_count BIGINT, |
| k8s_namespace_pod_phase_duration_seconds_p99_1h_max DOUBLE, |
| k8s_namespace_pod_phase_duration_seconds_p99_1h_min DOUBLE, |
| k8s_namespace_pod_phase_duration_seconds_p99_1h_sum DOUBLE, |
| k8s_namespace_pod_phase_duration_seconds_p99_1h_count BIGINT, |
| k8s_container_bs_cpu_core_used_max DOUBLE, |
| k8s_container_bs_cpu_core_used_min DOUBLE, |
| k8s_container_bs_cpu_core_used_sum DOUBLE, |
| k8s_container_bs_cpu_core_used_count BIGINT, |
| k8s_container_bs_mem_no_cache_bytes_max DOUBLE, |
| k8s_container_bs_mem_no_cache_bytes_min DOUBLE, |
| k8s_container_bs_mem_no_cache_bytes_sum DOUBLE, |
| k8s_container_bs_mem_no_cache_bytes_count BIGINT, |
| k8s_container_bs_mem_usage_bytes_max DOUBLE, |
| k8s_container_bs_mem_usage_bytes_min DOUBLE, |
| k8s_container_bs_mem_usage_bytes_sum DOUBLE, |
| k8s_container_bs_mem_usage_bytes_count BIGINT, |
| k8s_container_bs_rate_cpu_core_used_request_max DOUBLE, |
| k8s_container_bs_rate_cpu_core_used_request_min DOUBLE, |
| k8s_container_bs_rate_cpu_core_used_request_sum DOUBLE, |
| k8s_container_bs_rate_cpu_core_used_request_count BIGINT, |
| k8s_container_rate_mem_working_set_request_max DOUBLE, |
| k8s_container_rate_mem_working_set_request_min DOUBLE, |
| k8s_container_rate_mem_working_set_request_sum DOUBLE, |
| k8s_container_rate_mem_working_set_request_count BIGINT, |
| k8s_container_rate_gpu_used_request_max DOUBLE, |
| k8s_container_rate_gpu_used_request_min DOUBLE, |
| k8s_container_rate_gpu_used_request_sum DOUBLE, |
| k8s_container_rate_gpu_used_request_count BIGINT, |
| dcgm_fi_dev_fb_used_max DOUBLE, |
| dcgm_fi_dev_fb_used_min DOUBLE, |
| dcgm_fi_dev_fb_used_sum DOUBLE, |
| dcgm_fi_dev_fb_used_count BIGINT, |
| k8s_workload_pod_status_ready_max DOUBLE, |
| k8s_workload_pod_status_ready_min DOUBLE, |
| k8s_workload_pod_status_ready_sum DOUBLE, |
| k8s_workload_pod_status_ready_count BIGINT, |
| k8s_workload_pod_num_max DOUBLE, |
| k8s_workload_pod_num_min DOUBLE, |
| k8s_workload_pod_num_sum DOUBLE, |
| k8s_workload_pod_num_count BIGINT, |
| k8s_pod_status_ready_max DOUBLE, |
| k8s_pod_status_ready_min DOUBLE, |
| k8s_pod_status_ready_sum DOUBLE, |
| k8s_pod_status_ready_count BIGINT, |
| k8s_workload_pod_status_ready_rate_max DOUBLE, |
| k8s_workload_pod_status_ready_rate_min DOUBLE, |
| k8s_workload_pod_status_ready_rate_sum DOUBLE, |
| k8s_workload_pod_status_ready_rate_count BIGINT, |
| dcgm_fi_dev_gpu_temp_max DOUBLE, |
| dcgm_fi_dev_gpu_temp_min DOUBLE, |
| dcgm_fi_dev_gpu_temp_sum DOUBLE, |
| dcgm_fi_dev_gpu_temp_count BIGINT, |
| dcgm_fi_dev_power_usage_max DOUBLE, |
| dcgm_fi_dev_power_usage_min DOUBLE, |
| dcgm_fi_dev_power_usage_sum DOUBLE, |
| dcgm_fi_dev_power_usage_count BIGINT, |
| dcgm_fi_dev_retired_pending_max DOUBLE, |
| dcgm_fi_dev_retired_pending_min DOUBLE, |
| dcgm_fi_dev_retired_pending_sum DOUBLE, |
| dcgm_fi_dev_retired_pending_count BIGINT, |
| k8s_star_udf_label_pod_ready_rate_max DOUBLE, |
| k8s_star_udf_label_pod_ready_rate_min DOUBLE, |
| k8s_star_udf_label_pod_ready_rate_sum DOUBLE, |
| k8s_star_udf_label_pod_ready_rate_count BIGINT, |
| k8s_container_rate_mem_request_max DOUBLE, |
| k8s_container_rate_mem_request_min DOUBLE, |
| k8s_container_rate_mem_request_sum DOUBLE, |
| k8s_container_rate_mem_request_count BIGINT, |
| k8s_container_vgpu_gpu_util_max DOUBLE, |
| k8s_container_vgpu_gpu_util_min DOUBLE, |
| k8s_container_vgpu_gpu_util_sum DOUBLE, |
| k8s_container_vgpu_gpu_util_count BIGINT, |
| k8s_dcgm_fi_dev_fb_vgpu_gpu_util_max DOUBLE, |
| k8s_dcgm_fi_dev_fb_vgpu_gpu_util_min DOUBLE, |
| k8s_dcgm_fi_dev_fb_vgpu_gpu_util_sum DOUBLE, |
| k8s_dcgm_fi_dev_fb_vgpu_gpu_util_count BIGINT, |
| k8s_dcgm_fi_prof_sm_active_max DOUBLE, |
| k8s_dcgm_fi_prof_sm_active_min DOUBLE, |
| k8s_dcgm_fi_prof_sm_active_sum DOUBLE, |
| k8s_dcgm_fi_prof_sm_active_count BIGINT, |
| k8s_pod_bs_status_abnormal_15m_max DOUBLE, |
| k8s_pod_bs_status_abnormal_15m_min DOUBLE, |
| k8s_pod_bs_status_abnormal_15m_sum DOUBLE, |
| k8s_pod_bs_status_abnormal_15m_count BIGINT, |
| k8s_pod_bs_status_abnormal_5m_max DOUBLE, |
| k8s_pod_bs_status_abnormal_5m_min DOUBLE, |
| k8s_pod_bs_status_abnormal_5m_sum DOUBLE, |
| k8s_pod_bs_status_abnormal_5m_count BIGINT, |
| k8s_pod_bs_status_abnormal_20m_max DOUBLE, |
| k8s_pod_bs_status_abnormal_20m_min DOUBLE, |
| k8s_pod_bs_status_abnormal_20m_sum DOUBLE, |
| k8s_pod_bs_status_abnormal_20m_count BIGINT, |
| k8s_pod_bs_status_abnormal_30m_max DOUBLE, |
| k8s_pod_bs_status_abnormal_30m_min DOUBLE, |
| k8s_pod_bs_status_abnormal_30m_sum DOUBLE, |
| k8s_pod_bs_status_abnormal_30m_count BIGINT, |
| k8s_pod_bs_status_abnormal_10m_max DOUBLE, |
| k8s_pod_bs_status_abnormal_10m_min DOUBLE, |
| k8s_pod_bs_status_abnormal_10m_sum DOUBLE, |
| k8s_pod_bs_status_abnormal_10m_count BIGINT, |
| dcgm_fi_dev_row_remap_failure_max DOUBLE, |
| dcgm_fi_dev_row_remap_failure_min DOUBLE, |
| dcgm_fi_dev_row_remap_failure_sum DOUBLE, |
| dcgm_fi_dev_row_remap_failure_count BIGINT, |
| dcgm_fi_dev_row_remap_pending_max DOUBLE, |
| dcgm_fi_dev_row_remap_pending_min DOUBLE, |
| dcgm_fi_dev_row_remap_pending_sum DOUBLE, |
| dcgm_fi_dev_row_remap_pending_count BIGINT, |
| dcgm_fi_dev_xid_errors_max DOUBLE, |
| dcgm_fi_dev_xid_errors_min DOUBLE, |
| dcgm_fi_dev_xid_errors_sum DOUBLE, |
| dcgm_fi_dev_xid_errors_count BIGINT, |
| dcgm_fi_dev_ecc_dbe_agg_total_max DOUBLE, |
| dcgm_fi_dev_ecc_dbe_agg_total_min DOUBLE, |
| dcgm_fi_dev_ecc_dbe_agg_total_sum DOUBLE, |
| dcgm_fi_dev_ecc_dbe_agg_total_count BIGINT, |
| dcgm_fi_dev_ecc_dbe_vol_total_max DOUBLE, |
| dcgm_fi_dev_ecc_dbe_vol_total_min DOUBLE, |
| dcgm_fi_dev_ecc_dbe_vol_total_sum DOUBLE, |
| dcgm_fi_dev_ecc_dbe_vol_total_count BIGINT, |
| dcgm_fi_dev_ecc_sbe_agg_total_max DOUBLE, |
| dcgm_fi_dev_ecc_sbe_agg_total_min DOUBLE, |
| dcgm_fi_dev_ecc_sbe_agg_total_sum DOUBLE, |
| dcgm_fi_dev_ecc_sbe_agg_total_count BIGINT, |
| dcgm_fi_dev_ecc_sbe_vol_total_max DOUBLE, |
| dcgm_fi_dev_ecc_sbe_vol_total_min DOUBLE, |
| dcgm_fi_dev_ecc_sbe_vol_total_sum DOUBLE, |
| dcgm_fi_dev_ecc_sbe_vol_total_count BIGINT, |
| dcgm_fi_dev_correctable_remapped_rows_max DOUBLE, |
| dcgm_fi_dev_correctable_remapped_rows_min DOUBLE, |
| dcgm_fi_dev_correctable_remapped_rows_sum DOUBLE, |
| dcgm_fi_dev_correctable_remapped_rows_count BIGINT, |
| dcgm_fi_dev_uncorrectable_remapped_rows_max DOUBLE, |
| dcgm_fi_dev_uncorrectable_remapped_rows_min DOUBLE, |
| dcgm_fi_dev_uncorrectable_remapped_rows_sum DOUBLE, |
| dcgm_fi_dev_uncorrectable_remapped_rows_count BIGINT, |
| starrocks_timestamp BIGINT, |
| priority_class STRING, |
| k8s_container_vgpu_gpu_mem_usage_max DOUBLE, |
| k8s_container_vgpu_gpu_mem_usage_min DOUBLE, |
| k8s_container_vgpu_gpu_mem_usage_sum DOUBLE, |
| k8s_container_vgpu_gpu_mem_usage_count BIGINT, |
| k8s_container_vgpu_gpu_mem_total_max DOUBLE, |
| k8s_container_vgpu_gpu_mem_total_min DOUBLE, |
| k8s_container_vgpu_gpu_mem_total_sum DOUBLE, |
| k8s_container_vgpu_gpu_mem_total_count BIGINT |
| ) STORED AS ORC; |
|
|
| INSERT INTO TABLE internal_platform_db.gputj_gpu_info_parsed_agg_1min_query_engine_024 |
| VALUES |
| ('2026050700', '20260507', 'pod-abc-001', 'node1', '2026-05-07 08:00:00', 'ns1', 'c1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 75.0, 25.0, 100.0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2.0, 1.0, 3.0), |
| ('2026050700', '20260507', 'pod-xyz-002', 'node2', '2026-05-07 09:01:00', 'ns2', 'c2', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 60.0, 40.0, 100.0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4.0, 2.0, 6.0); |
|
|
| |
| CREATE TABLE IF NOT EXISTS internal_platform_db.notebook_engine_info_query_engine_024 ( |
| databus_imp_date STRING, |
| trace_id STRING, |
| service_name STRING, |
| compute_type STRING, |
| datawd_project_id STRING, |
| datawd_task_id STRING, |
| datawd_task_instance_id STRING, |
| is_permanent STRING, |
| serving_id STRING, |
| user_name STRING, |
| is_model_service STRING, |
| compute_info STRING, |
| num_gpu STRING, |
| replicas STRING, |
| gpu_type STRING, |
| `timestamp` STRING, |
| ray_job_id STRING, |
| reason STRING, |
| log_url STRING, |
| dashboard_url STRING |
| ) STORED AS ORC; |
|
|
| INSERT INTO TABLE internal_platform_db.notebook_engine_info_query_engine_024 VALUES |
| ('2026050700','trace001','notebook-runner','ray','proj1','task1','inst1','true','1001','user1','false','{}','2','1','V100','','','','',''), |
| ('2026050700','trace002','notebook-runner','ray','proj2','task2','inst2','false','1002','user2','false','{}','4','2','A100','','','','',''); |
|
|
| |
| CREATE TABLE IF NOT EXISTS internal_platform_db.dwd_notebook_killed_instance_pod_detail_d_query_engine_024 ( |
| trace_id STRING, |
| datawd_project_id STRING, |
| datawd_task_id STRING, |
| datawd_task_instance_id STRING, |
| compute_type STRING, |
| status_code INT, |
| instance_run_time INT, |
| code_run_time INT, |
| resource_wait_time INT, |
| code_start_time STRING, |
| code_end_time STRING, |
| instance_start_time STRING, |
| instance_end_time STRING, |
| serving_id STRING, |
| is_permanent BOOLEAN, |
| apply_for_gpu_count INT, |
| pod_name STRING, |
| pkg_agg_time STRING, |
| gpu_util DOUBLE, |
| gpu_count INT, |
| p_date STRING |
| ) PARTITIONED BY (dt STRING) STORED AS ORC; |
|
|
| |
| CREATE TABLE IF NOT EXISTS internal_platform_db.dwd_notebook_killed_instance_pod_detail_d_cand_query_engine_024 ( |
| trace_id STRING, |
| datawd_project_id STRING, |
| datawd_task_id STRING, |
| datawd_task_instance_id STRING, |
| compute_type STRING, |
| status_code INT, |
| instance_run_time INT, |
| code_run_time INT, |
| resource_wait_time INT, |
| code_start_time STRING, |
| code_end_time STRING, |
| instance_start_time STRING, |
| instance_end_time STRING, |
| serving_id STRING, |
| is_permanent BOOLEAN, |
| apply_for_gpu_count INT, |
| pod_name STRING, |
| pkg_agg_time STRING, |
| gpu_util DOUBLE, |
| gpu_count INT, |
| p_date STRING |
| ) PARTITIONED BY (dt STRING) STORED AS ORC; |