Commit 0d07b54b authored by litaolemo's avatar litaolemo

update

parent 39e0e3b8
...@@ -63,7 +63,7 @@ spark.sql("CREATE TEMPORARY FUNCTION is_json AS 'com.gmei.hive.common.udf.UDFJso ...@@ -63,7 +63,7 @@ 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'") spark.sql("CREATE TEMPORARY FUNCTION arrayMerge AS 'com.gmei.hive.common.udf.UDFArryMerge'")
task_list = [] task_list = []
task_days = 1 task_days = 90
for t in range(0, task_days): for t in range(0, task_days):
day_num = 0 - t day_num = 0 - t
...@@ -270,7 +270,7 @@ for t in range(0, task_days): ...@@ -270,7 +270,7 @@ for t in range(0, task_days):
finnal_df.show(1, False) finnal_df.show(1, False)
sql_res = finnal_df.collect() sql_res = finnal_df.collect()
for res in sql_res: for res in sql_res:
print(res) # print(res)
device_type = res.device_type device_type = res.device_type
active_type = res.active_type active_type = res.active_type
channel_type = res.channel_type channel_type = res.channel_type
......
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