Skip to content

Commit aa38dc1

Browse files
authored
Merge pull request #1 from tzachshabtay/tzachshabtay-patch-rows-exclude-header
2 parents 4f601ab + 47ee356 commit aa38dc1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aws_s3--0.0.1.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ AS $$
219219
size += len(buffer)
220220
fd.seek(0)
221221
s3.upload_fileobj(fd, bucket, file_path)
222+
if 'HEADER TRUE' in options.upper():
223+
num_lines -= 1
222224
yield (num_lines, 1, size)
223225
$$;
224226

0 commit comments

Comments
 (0)