HPCC-20894 HThor: Allow output to dynamic filename within APPLY() Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
@@ -436,6 +436,8 @@ void CHThorDiskWriteActivity::stop()
if(clusterHandler)
clusterHandler->finish(file);
CHThorActivityBase::stop();
+ if (helper.getFlags() & TDXvarfilename)
+ filename.clear();
}
void CHThorDiskWriteActivity::resolve()
@@ -0,0 +1,5 @@
+layout := { STRING letter; };
+
+ds := DATASET([{'A'},{'B'},{'C'}], layout);
+APPLY(ds, OUTPUT(DATASET([letter],layout),,'~temp::letters::'+letter, OVERWRITE));