renyupeng 3 gadi atpakaļ
vecāks
revīzija
384c7f5a1a

+ 3 - 1
Apietl/kwai_etl/report/MateirialVideoHourlyReport.py

@@ -115,7 +115,8 @@ class MateirialVideoHourlyReport:
        video_name,
        channel_name,
        clip_company_id)
-select report.advertiser_id                                                                     as account_id,
+select /*+ read_from_storage(tiflash[media_api.kuaishou_material_video_report_hourly]) */
+       report.advertiser_id                                                                     as account_id,
        cp.id                                                                                    as project_id,
        product.id                                                                               as product_id,
        ca.id                                                                                    as advertiser_id,
@@ -275,6 +276,7 @@ select report.advertiser_id
        case when video.channel_type = 1 then '素造' else '内部' end as channel_name,
        uc.company_id
 from media_api.kuaishou_material_video_report_hourly report
+        /*+ read_from_storage(tiflash[media_api.kuaishou_video_list]) */
          inner join media_api.kuaishou_video_list video
                     on report.advertiser_id = video.account_id and report.photo_id = video.photo_id
          left join `jeecg-boot`.ctop_material_info cmi on video.signature = cmi.code