Commit b82da1e2 authored by litaolemo's avatar litaolemo

update

parent e05ba427
......@@ -79,8 +79,8 @@ spark.sql("CREATE TEMPORARY FUNCTION is_json AS 'com.gmei.hive.common.udf.UDFJso
spark.sql("CREATE TEMPORARY FUNCTION arrayMerge AS 'com.gmei.hive.common.udf.UDFArryMerge'")
task_days = 3
for t in range(0, task_days):
task_days = 2
for t in range(1, 2):
day_num = 0 - t
now = (datetime.datetime.now() + datetime.timedelta(days=day_num))
last_30_day_str = (now + datetime.timedelta(days=-30)).strftime("%Y%m%d")
......@@ -800,11 +800,12 @@ for t in range(0, task_days):
has_click_pv_sql = 'select pid,card_click from recommend_strategy_d where partition_day = "%s"' % today_str
all_data_res = con_sql(has_click_pv_sql)
for data in all_data_res:
print(data)
# print(data)
data_dict[data[0]] = data[1]
if not data_dict:
continue
sql_res = {}
print(data_dict)
print("-----------------------------------------------------------------------------")
for res in sql_res:
# print(res)
......
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