Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
meta_base_code
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黎涛
meta_base_code
Commits
d0ab1290
Commit
d0ab1290
authored
Feb 22, 2021
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
48c90af2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
search_strategy_d.py
task/search_strategy_d.py
+6
-6
No files found.
task/search_strategy_d.py
View file @
d0ab1290
...
@@ -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"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment