If possible, we can consider using a custom sql sentence to do the same since we generate the csv in the server.