|
@@ -26,7 +26,7 @@ class BytedanceMaterialMd5FristCostDateUpdate:
|
|
|
try:
|
|
|
sql = """
|
|
|
replace into application.bytedance_material_md5_frist_cost_time
|
|
|
-select a.signature,
|
|
|
+select a.material_id,a.signature,
|
|
|
case when b.first_cost_time is null then a.stat_datetime
|
|
|
when a.stat_datetime<b.first_cost_time then a.stat_datetime
|
|
|
else b.first_cost_time end as first_cost_time
|