Skip to content

Commit

Permalink
HPCC-31410 Changes following review
Browse files Browse the repository at this point in the history
Signed-off-by: Shamser Ahmed <[email protected]>
  • Loading branch information
shamser committed Oct 4, 2024
1 parent a614e4c commit e9ca1a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//noroxie
//nohthor

import Std.System;
import Std.System.Thorlib;
import Std.File AS FileServices;
import $.setup;
prefix := setup.Files(false, false).QueryFilePrefix;
Expand All @@ -28,10 +28,6 @@ layout_user := RECORD
STRING20 user;
END;

layout_names := RECORD
STRING30 name;
END;

ds1 := DATASET([{'Ned'},{'Robert'}, {'Jaime'}, {'Catelyn'}, {'Cersei'}, {'Daenerys'}, {'Jon'}], layout_user, DISTRIBUTED );
ds2 := DATASET([{'Sansa'}, {'Arya'}, {'Robb'}, {'Theon'}, {'Bran'}, {'Joffrey'}, {'Hound'}, {'Tyrion'}], layout_user, DISTRIBUTED);
ds3 := DATASET([{'Arya'}, {'Robb'}, {'Theon'}, {'Bran'}, {'Joffrey'}, {'Hound'}, {'Tyrion'}], layout_user, DISTRIBUTED);
Expand All @@ -46,12 +42,10 @@ SEQUENTIAL(
FileServices.AddSuperFile(prefix + 'superdata', prefix + 'subdata2'),
FileServices.AddSuperFile(prefix + 'superdata', prefix + 'subdata3'),
FileServices.FinishSuperFileTransaction(),
FileServices.Copy(sourceLogicalName := prefix + 'superdata', destinationGroup := 'mythor', destinationLogicalName := prefix + 'super_copy', ALLOWOVERWRITE := true),
FileServices.Copy(sourceLogicalName := prefix + 'superdata', destinationGroup := Thorlib.group(), destinationLogicalName := prefix + 'super_copy', ALLOWOVERWRITE := true),
FileServices.DeleteLogicalFile(prefix + 'super_copy', true),
FileServices.DeleteOwnedSubFiles(prefix + 'superdata'),
FileServices.DeleteLogicalFile(prefix + 'superdata', true),
FileServices.DeleteLogicalFile(prefix + 'subdata1', true),
FileServices.DeleteLogicalFile(prefix + 'subdata2', true),
FileServices.DeleteLogicalFile(prefix + 'subdata3', true),
FileServices.DeleteLogicalFile(prefix + 'superdata', true),
)

File renamed without changes.

0 comments on commit e9ca1a9

Please sign in to comment.