I have a zipped csv file which is a part of a huge file, and extracted from the original huge file using the following command:
gunzip -c myFile.csv.gz | head -n 500000 > myFile.csv.gz_p1
after making the smaller file, I need to insert it into a table in Redshift, but I get the following error:
Cause: Failed to inflateinvalid or incomplete deflate data. zlib error code: -3