fix(redshift): skip the header of every object in a COPY (#7266)

This commit is contained in:
Vũ Thế Huy authored and GitHub committed 2026-11-02 08:30:02 -04:00
1 parent 261072bf8a
commit b92340b243
3 files changed
+23 -5

No files matched your search

@@ -519,7 +519,8 @@ public final class S3CopySimulator {
JsonLinesToCsvConverter.convert(in, targetCols, copyDataOut, spec.jsonAutoIgnoreCase());
copyDataOut.flush();
} else {
if (i == 0 && spec.headerLines() > 0) {
// Every object has its own header, as in a parallel load of several files.
if (spec.headerLines() > 0) {
skipLines(in, spec.headerLines());
}
InputStream source = in;