diff --git a/dataloader/loader.q b/dataloader/loader.q index 6aff6b2..0a503b2 100644 --- a/dataloader/loader.q +++ b/dataloader/loader.q @@ -56,7 +56,7 @@ loaddata:{[filename;rawdata] out"Writing ",(string count towrite)," rows to ",string writepath; // splay the table - use an error trap - .[upsert;(writepath;data);{out"ERROR - failed to save table: ",x}]; + .[upsert;(writepath;towrite);{out"ERROR - failed to save table: ",x}]; // make sure the written path is in the partition dictionary partitions[writepath]:date;