From dc934f95d46f766365e5c280854ef2dd9eca0fc1 Mon Sep 17 00:00:00 2001 From: Shamser Ahmed Date: Mon, 28 Oct 2024 12:14:17 +0000 Subject: [PATCH] Ensure copied data matches original Signed-off-by: Shamser Ahmed --- testing/regress/ecl/dfusupercopy.ecl | 3 +++ testing/regress/ecl/key/dfusupercopy.xml | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/testing/regress/ecl/dfusupercopy.ecl b/testing/regress/ecl/dfusupercopy.ecl index 4f0db804d89..7865b110a4e 100644 --- a/testing/regress/ecl/dfusupercopy.ecl +++ b/testing/regress/ecl/dfusupercopy.ecl @@ -31,6 +31,8 @@ ds1 := DATASET([{'Ned'},{'Robert'}, {'Jaime'}, {'Catelyn'}, {'Cersei'}, {'Daener 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); +dsSuperData := DATASET(prefix+'superdata', layout_user, FLAT); + SEQUENTIAL( OUTPUT(ds1, , prefix + 'subdata1', OVERWRITE), OUTPUT(ds2, , prefix + 'subdata2', OVERWRITE), @@ -42,6 +44,7 @@ SEQUENTIAL( FileServices.AddSuperFile(prefix + 'superdata', prefix + 'subdata3'), FileServices.FinishSuperFileTransaction(), FileServices.Copy(sourceLogicalName := prefix + 'superdata', destinationGroup := '', destinationLogicalName := prefix + 'super_copy', ALLOWOVERWRITE := true), + OUTPUT(SORT(dsSuperData, user), NAMED('superdata')), FileServices.DeleteLogicalFile(prefix + 'super_copy', true), FileServices.DeleteLogicalFile(prefix + 'superdata', true), FileServices.DeleteLogicalFile(prefix + 'subdata1', true), diff --git a/testing/regress/ecl/key/dfusupercopy.xml b/testing/regress/ecl/key/dfusupercopy.xml index d4331984355..5fd52c60fa1 100644 --- a/testing/regress/ecl/key/dfusupercopy.xml +++ b/testing/regress/ecl/key/dfusupercopy.xml @@ -4,3 +4,27 @@ + + Arya + Arya + Bran + Bran + Catelyn + Cersei + Daenerys + Hound + Hound + Jaime + Joffrey + Joffrey + Jon + Ned + Robb + Robb + Robert + Sansa + Theon + Theon + Tyrion + Tyrion +