Jelajahi Sumber

HPCC-25829 Make Std.DataPatterns.BestRecordStructure() explicitly refer to Std.DataPatterns.Profile()

The old version of the function macro was pulled verbatim from the DataPatterns ECL bundle, where it works when installed as a bundle.

This needed change will fork the code for this one file.

Signed-off-by: Dan S. Camper <dan.camper@lexisnexisrisk.com>
Dan S. Camper 4 tahun lalu
induk
melakukan
9a7b97508f
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 1 2
      ecllibrary/std/DataPatterns/BestRecordStructure.ecl

+ 1 - 2
ecllibrary/std/DataPatterns/BestRecordStructure.ecl

@@ -47,7 +47,6 @@ EXPORT BestRecordStructure(inFile, sampling = 100, emitTransform = FALSE, textOu
     #UNIQUENAME(bestNamePrefix);
     #UNIQUENAME(recLevel);
 
-    IMPORT DataPatterns;
     IMPORT Std;
 
     // Attribute naming note:  In order to reduce symbol collisions with calling
@@ -216,7 +215,7 @@ EXPORT BestRecordStructure(inFile, sampling = 100, emitTransform = FALSE, textOu
         );
 
     // Get the best data types from the Profile() function
-    LOCAL __patternRes := DataPatterns.Profile(inFile, features := 'best_ecl_types', sampleSize := sampling);
+    LOCAL __patternRes := Std.DataPatterns.Profile(inFile, features := 'best_ecl_types', sampleSize := sampling);
 
     // Append the derived 'best' data types to the field information we
     // already collected