Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-cicd
csst-dag
Commits
59472296
Commit
59472296
authored
Jul 10, 2025
by
BO ZHANG
🏀
Browse files
fixed no join bug when no data in table
parent
abd5f3ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dag/dag/_base_dag.py
View file @
59472296
...
...
@@ -88,12 +88,15 @@ class BaseDAG:
join_type
=
"inner"
,
)
u_data_basis
=
table
.
unique
(
filtered_data_basis
[
"dataset"
,
"obs_id"
])
filtered_plan_basis
=
table
.
join
(
u_data_basis
,
plan_basis
,
keys
=
[
"dataset"
,
"obs_id"
],
join_type
=
"inner"
,
)
if
len
(
u_data_basis
)
==
0
:
filtered_plan_basis
=
plan_basis
[:
0
]
else
:
filtered_plan_basis
=
table
.
join
(
u_data_basis
,
plan_basis
,
keys
=
[
"dataset"
,
"obs_id"
],
join_type
=
"inner"
,
)
return
filtered_plan_basis
,
filtered_data_basis
def
schedule
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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