Commit d0ab1290 authored by litaolemo's avatar litaolemo

update

parent 48c90af2
...@@ -136,8 +136,8 @@ for t in range(0, task_days): ...@@ -136,8 +136,8 @@ for t in range(0, task_days):
dev_df.cache() dev_df.cache()
dev_df.show(1) dev_df.show(1)
sql_res = dev_df.collect() sql_res = dev_df.collect()
for res in sql_res: # for res in sql_res:
print(res) # print(res)
print("-------------------------------") print("-------------------------------")
...@@ -154,8 +154,8 @@ for t in range(0, task_days): ...@@ -154,8 +154,8 @@ for t in range(0, task_days):
spam_pv_df.show(1) spam_pv_df.show(1)
sql_res = spam_pv_df.collect() sql_res = spam_pv_df.collect()
spam_pv_df.cache() spam_pv_df.cache()
for res in sql_res: # for res in sql_res:
print(res) # print(res)
print("-------------------------------") print("-------------------------------")
sql = r""" sql = r"""
...@@ -374,8 +374,8 @@ for t in range(0, task_days): ...@@ -374,8 +374,8 @@ for t in range(0, task_days):
device_df = spark.sql(sql) device_df = spark.sql(sql)
device_df.show(1, False) device_df.show(1, False)
sql_res = device_df.collect() sql_res = device_df.collect()
for res in sql_res: # for res in sql_res:
print(res) # print(res)
device_df.createOrReplaceTempView("data_table") device_df.createOrReplaceTempView("data_table")
# #
# sql = r""" # sql = r"""
......
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