Commit e6da24dd by chenyuanjie

年度流量选品-月销默认值填充

parent f154543e
...@@ -302,18 +302,18 @@ class DwtFlowAsinYear(object): ...@@ -302,18 +302,18 @@ class DwtFlowAsinYear(object):
).select( ).select(
F.col('asin'), F.col('asin'),
F.col('bought_month_total'), F.col('bought_month_total'),
F.col('bought_month_1').cast(IntegerType()), F.coalesce(F.col('bought_month_1'), F.lit(0)).cast(IntegerType()).alias('bought_month_1'),
F.col('bought_month_2').cast(IntegerType()), F.coalesce(F.col('bought_month_2'), F.lit(0)).cast(IntegerType()).alias('bought_month_2'),
F.col('bought_month_3').cast(IntegerType()), F.coalesce(F.col('bought_month_3'), F.lit(0)).cast(IntegerType()).alias('bought_month_3'),
F.col('bought_month_4').cast(IntegerType()), F.coalesce(F.col('bought_month_4'), F.lit(0)).cast(IntegerType()).alias('bought_month_4'),
F.col('bought_month_5').cast(IntegerType()), F.coalesce(F.col('bought_month_5'), F.lit(0)).cast(IntegerType()).alias('bought_month_5'),
F.col('bought_month_6').cast(IntegerType()), F.coalesce(F.col('bought_month_6'), F.lit(0)).cast(IntegerType()).alias('bought_month_6'),
F.col('bought_month_7').cast(IntegerType()), F.coalesce(F.col('bought_month_7'), F.lit(0)).cast(IntegerType()).alias('bought_month_7'),
F.col('bought_month_8').cast(IntegerType()), F.coalesce(F.col('bought_month_8'), F.lit(0)).cast(IntegerType()).alias('bought_month_8'),
F.col('bought_month_9').cast(IntegerType()), F.coalesce(F.col('bought_month_9'), F.lit(0)).cast(IntegerType()).alias('bought_month_9'),
F.col('bought_month_10').cast(IntegerType()), F.coalesce(F.col('bought_month_10'), F.lit(0)).cast(IntegerType()).alias('bought_month_10'),
F.col('bought_month_11').cast(IntegerType()), F.coalesce(F.col('bought_month_11'), F.lit(0)).cast(IntegerType()).alias('bought_month_11'),
F.col('bought_month_12').cast(IntegerType()), F.coalesce(F.col('bought_month_12'), F.lit(0)).cast(IntegerType()).alias('bought_month_12'),
F.col('bought_month_q1').cast(IntegerType()), F.col('bought_month_q1').cast(IntegerType()),
F.col('bought_month_q2').cast(IntegerType()), F.col('bought_month_q2').cast(IntegerType()),
F.col('bought_month_q3').cast(IntegerType()), F.col('bought_month_q3').cast(IntegerType()),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment