Datasets:
File size: 11,572 Bytes
e8c001c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 | insert overwrite table internal_platform_db.ads_sec_ec_sup_ec_tele_item_score_query_engine_140 partition(p_date='20260608')
with view_union as (
select uniqu_id,
id,
name,
sub_title,
property,
sku_list,
desc_info,
url,
status,
sale_price,
sale_qty,
stock_qty,
main_image_url,
sub_image_url,
category_level1_id,
category_level1_name,
category_level2_id,
category_level2_name,
category_level3_id,
category_level3_name,
shop_uniqu_id,
shop_id,
shop_name,
shop_url,
platform_id,
platform_name,
shipping_address,
price_text,
flag,
need_cutpic,
is_ocr,
soe_flag,
data_channel,
data_method,
data_source,
detail_image_url,
service_guarantee,
brand_id,
brand_name,
is_ad,
is_selfoperated,
create_time,
task_id,
batch_id,
category_level1_original,
category_level2_original,
category_level3_original,
brand_name_original,
product_name,
approval_number,
ccc_certificate_number,
efficacy,
production_place,
manufacturer,
production_license_number,
factory_name,
factory_address,
brand_authorization_image_url,
is_virtual,
is_invoice,
is_guarantee,
is_free_ship,
comments_cnt,
industry_id,
industry_name,
high_remark_cnt,
med_remark_cnt,
bad_remark_cnt,
main_image_ocr,
sub_image_ocr,
detail_image_ocr,
ml_category_tag,
sku_cnt,
license_collection_status,
screenshot_url,
required_quality_score,
core_quality_score,
other_quality_score,
'精细采集' as source_type,
case when required_quality_score = 1 and status = 1 then 1 else 0 end is_exp
from internal_platform_db.ads_sec_ec_sup_ec_tele_item_hi_query_engine_140
WHERE p_hour>='2026060800' and p_hour<'2026060900'
union all
select uniqu_id,
id,
name,
sub_title,
property,
sku_list,
desc_info,
url,
status,
price as sale_price,
sale_qty,
stock_qty,
main_image_url,
sub_image_url,
category_level1_id,
category_level1_name,
category_level2_id,
category_level2_name,
category_level3_id,
category_level3_name,
shop_uniqu_id,
shop_id,
shop_name,
shop_url,
platform_id,
platform_name,
shipping_address,
price_text,
flag,
need_cutpic,
is_ocr,
soe_flag,
data_channel,
data_method,
data_source,
detail_image_url,
service_guarantee,
brand_id,
brand_name,
is_ad,
is_selfoperated,
create_time,
task_id,
batch_id,
category_level1_original,
category_level2_original,
category_level3_original,
brand_name_original,
product_name,
approval_number,
ccc_certificate_number,
efficacy,
production_place,
manufacturer,
production_license_number,
factory_name,
factory_address,
brand_authorization_image_url,
is_virtual,
is_invoice,
is_guarantee,
is_free_ship,
comments_cnt,
industry_id,
industry_name,
high_remark_cnt,
med_remark_cnt,
bad_remark_cnt,
main_image_ocr,
sub_image_ocr,
detail_image_ocr,
ml_category_tag,
sku_cnt,
license_collection_status,
screenshot_url,
required_quality_score,
core_quality_score,
other_quality_score,
'泛化采集' as source_type,
case when required_quality_score=1 then 1 else 0 end as is_exp
from internal_platform_db.ads_sec_ec_sup_ec_tele_security_platform_lk_extensive_item_query_engine_140
where(p_date='20260608')
)
select
uniqu_id as uniqu_id,
case when coalesce(id,'') <> '' then 1 else 0 end as id_socre,
case when coalesce(name,'') <> '' then 1 else 0 end as name_socre,
case when coalesce(sub_title,'') <> '' then 1 else 0 end as sub_title_socre,
case when coalesce(property, '') = '' then 0 else 1 end as property_socre,
case when coalesce(sku_list, '') = '' then 0 else 1 end as sku_list_socre,
case when coalesce(desc_info, '') = '' then 0 else 1 end as desc_info_socre,
case when coalesce(url,'') <> '' then 1 else 0 end as url_socre,
case when status is not null then 1 else 0 end as status_socre,
case when sale_price is not null then 1 else 0 end as price_socre,
case when sale_qty is not null then 1 else 0 end as sale_qty_socre,
case when stock_qty is not null then 1 else 0 end as stock_qty_socre,
case when coalesce(main_image_url, '') = '' then 0 else 1 end as main_image_url_socre,
case when coalesce(sub_image_url, '') = '' then 0 else 1 end as sub_image_url_socre,
case when category_level1_id is not null then 1 else 0 end as category_level1_id_socre,
case when coalesce(category_level1_name, '') = '' then 0 else 1 end as category_level1_name_socre,
case when category_level2_id is not null then 1 else 0 end as category_level2_id_socre,
case when coalesce(category_level2_name, '') = '' then 0 else 1 end as category_level2_name_socre,
case when category_level3_id is not null then 1 else 0 end as category_level3_id_socre,
case when coalesce(category_level3_name, '') = '' then 0 else 1 end as category_level3_name_socre,
case when coalesce(shop_uniqu_id,'') <> '' then 1 else 0 end as shop_uniqu_id_socre,
case when coalesce(shop_id, '') = '' then 0 else 1 end as shop_id_socre,
case when coalesce(shop_name,'') <> '' then 1 else 0 end as shop_name_socre,
case when coalesce(shop_url,'') <> '' then 1 else 0 end as shop_url_socre,
case when platform_id is not null then 1 else 0 end as platform_id_socre,
case when coalesce(platform_name,'') <> '' then 1 else 0 end as platform_name_socre,
case when coalesce(shipping_address, '') = '' then 0 else 1 end as shipping_address_socre,
case when coalesce(price_text, '') = '' then 0 else 1 end as price_text_socre,
case when flag is not null then 1 else 0 end as flag_socre,
case when need_cutpic is not null then 1 else 0 end as need_cutpic_socre,
case when is_ocr is not null then 1 else 0 end as is_ocr_socre,
case when soe_flag is not null then 1 else 0 end as soe_flag_socre,
case when data_channel is not null then 1 else 0 end as data_channel_socre,
case when data_method is not null then 1 else 0 end as data_method_socre,
case when data_source is not null then 1 else 0 end as data_source_socre,
case when coalesce(detail_image_url, '') = '' then 0 else 1 end as detail_image_url_socre,
case when coalesce(service_guarantee, '') = '' then 0 else 1 end as service_guarantee_socre,
case when brand_id is not null then 1 else 0 end as brand_id_socre,
case when coalesce(brand_name, '') = '' then 0 else 1 end as brand_name_socre,
case when is_ad is not null then 1 else 0 end as is_ad_socre,
case when is_selfoperated is not null then 1 else 0 end as is_selfoperated_socre,
case when create_time is not null then 1 else 0 end as create_time_socre,
case when coalesce(task_id,'') <> '' then 1 else 0 end as task_id_socre,
case when coalesce(batch_id,'') <> '' then 1 else 0 end as batch_id_socre,
case when coalesce(category_level1_original, '') = '' then 0 else 1 end as category_level1_original_socre,
case when coalesce(category_level2_original, '') = '' then 0 else 1 end as category_level2_original_socre,
case when coalesce(category_level3_original, '') = '' then 0 else 1 end as category_level3_original_socre,
case when coalesce(brand_name_original, '') = '' then 0 else 1 end as brand_name_original_socre,
case when coalesce(product_name, '') = '' then 0 else 1 end as product_name_socre,
case when coalesce(approval_number, '') = '' then 0 else 1 end as approval_number_socre,
case when coalesce(ccc_certificate_number, '') = '' then 0 else 1 end as ccc_certificate_number_socre,
case when coalesce(efficacy, '') = '' then 0 else 1 end as efficacy_socre,
case when coalesce(production_place, '') = '' then 0 else 1 end as production_place_socre,
case when coalesce(manufacturer, '') = '' then 0 else 1 end as manufacturer_socre,
case when coalesce(production_license_number, '') = '' then 0 else 1 end as production_license_number_socre,
case when coalesce(factory_name, '') = '' then 0 else 1 end as factory_name_socre,
case when coalesce(factory_address, '') = '' then 0 else 1 end as factory_address_socre,
case when coalesce(brand_authorization_image_url, '') = '' then 0 else 1 end as brand_authorization_image_url_socre,
case when is_virtual is not null then 1 else 0 end as is_virtual_socre,
case when is_invoice is not null then 1 else 0 end as is_invoice_socre,
case when is_guarantee is not null then 1 else 0 end as is_guarantee_socre,
case when is_free_ship is not null then 1 else 0 end as is_free_ship_socre,
case when comments_cnt is not null then 1 else 0 end as comments_cnt_socre,
case when coalesce(industry_id, '') = '' then 0 else 1 end as industry_id_socre,
case when coalesce(industry_name, '') = '' then 0 else 1 end as industry_name_socre,
case when high_remark_cnt is not null then 1 else 0 end as high_remark_cnt_socre,
case when med_remark_cnt is not null then 1 else 0 end as med_remark_cnt_socre,
case when bad_remark_cnt is not null then 1 else 0 end as bad_remark_cnt_socre,
case when coalesce(main_image_ocr, '') = '' then 0 else 1 end as main_image_ocr_socre,
case when coalesce(sub_image_ocr, '') = '' then 0 else 1 end as sub_image_ocr_socre,
case when coalesce(detail_image_ocr, '') = '' then 0 else 1 end as detail_image_ocr_socre,
case when ml_category_tag is not null then 1 else 0 end as ml_category_tag_socre,
null as logo_brand_socre,
null as similarity_img_url_socre,
case when sku_cnt is not null then 1 else 0 end as sku_cnt_socre,
case when license_collection_status is not null then 1 else 0 end as license_collection_status_socre,
null as data_method_keyword_socre,
null as task_name_socre,
case when screenshot_url is not null then 1 else 0 end as screenshot_url_socre,
required_quality_score,
core_quality_score,
other_quality_score,
platform_name,
source_type,
is_exp,
case when status <>1 then 1 else 0 end as is_off_shelf
from view_union |