Przeglądaj źródła

Merge pull request #12955 from ghalliday/issue20894

HPCC-20894 HThor: Allow output to dynamic filename within APPLY()

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 5 lat temu
rodzic
commit
13ffae7777
2 zmienionych plików z 7 dodań i 0 usunięć
  1. 2 0
      ecl/hthor/hthor.cpp
  2. 5 0
      ecl/regress/issue20894.ecl

+ 2 - 0
ecl/hthor/hthor.cpp

@@ -436,6 +436,8 @@ void CHThorDiskWriteActivity::stop()
     if(clusterHandler)
         clusterHandler->finish(file);
     CHThorActivityBase::stop();
+    if (helper.getFlags() & TDXvarfilename)
+        filename.clear();
 }
 
 void CHThorDiskWriteActivity::resolve()

+ 5 - 0
ecl/regress/issue20894.ecl

@@ -0,0 +1,5 @@
+layout := { STRING letter; };
+
+ds := DATASET([{'A'},{'B'},{'C'}], layout);
+
+APPLY(ds, OUTPUT(DATASET([letter],layout),,'~temp::letters::'+letter, OVERWRITE));