Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gpfs-policy
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rc
gpfs-policy
Commits
7fd2308b
Commit
7fd2308b
authored
8 months ago
by
Matthew K Defenderfer
Browse files
Options
Downloads
Patches
Plain Diff
acheck to see if mode exists in the dataset in the first place
parent
f5686380
No related branches found
No related tags found
1 merge request
!9
Draft: Partition parquet dataset for sync with s5cmd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
transfer-gpfs-with-s5cmd/fpart-db.py
+2
-1
2 additions, 1 deletion
transfer-gpfs-with-s5cmd/fpart-db.py
with
2 additions
and
1 deletion
transfer-gpfs-with-s5cmd/fpart-db.py
+
2
−
1
View file @
7fd2308b
...
...
@@ -34,7 +34,8 @@ def main():
ddf
=
dd
.
read_parquet
(
input_parquet
)
ddf
=
ddf
.
loc
[
ddf
[
'
path
'
].
str
.
startswith
(
filter
)].
sort_values
(
'
path
'
)
ddf
=
ddf
.
loc
[
~
ddf
[
'
mode
'
].
str
.
startswith
(
'
d
'
)]
if
'
mode
'
in
ddf
.
columns
:
ddf
=
ddf
.
loc
[
~
ddf
[
'
mode
'
].
str
.
startswith
(
'
d
'
)]
ddf
[
'
cmd
'
]
=
ddf
[
'
path
'
].
map
(
lambda
x
:
create_sync_cmd
(
x
,
filter
=
filter
,
dest
=
dest
),
meta
=
str
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment