Preceding load issues when LOAD uses * to load multiple QVDs
I am attempting to perform a GROUP BY by using a preceding load on multiple QVD files (all with the same format) by using * in the filepath. It seems that only the first QVD found uses the preceding load the rest of the QVD files simply ignore this and creates their own data. I have also attempted to create the table before doing the load and forcing it to concatenate to it.
I have a possible workaround where I can create a function which return the list of files in the directory and I will perform a FOR EACH file loop do the load but I was wondering if there is something I am missing here. In the script execution you can see that the first QVD produced 60,000 rows after the GROUP BY function but then the second produced 6,200,000 rows. It is also creating a SYN table.
I have attached the code for your presual below. Any help will be appreciated.