mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
fix(redshift): skip the header of every object in a COPY (#7266)
This commit is contained in:
1 parent
261072bf8a
commit
b92340b243
3 files changed
+23
-5
No files matched your search
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user