You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some tools like pyspark dataframe s3 write does not set AWS system-defined metadata when writing and specifying "gzip" compression. Postgres s3_import extension fails to identify gzip file as gzip compressed. This results in a UTF-8 encoding error (reported byte sequence is the start of a gzip byte sequence). The real error is that postgres did not recognize it as gzip encoding and attempted to process it like an uncompresed text file.
If you attempt to add "Content-Encoding" = "gzip" metadata programmatically, this is added as user-defined metadata. When viewing this metadata via the AWS console after adding this metadata is appears with the key name of "x-amz-meta-content-encoding" and this is not tested for in the extension code.
I will submit a pull request.
The text was updated successfully, but these errors were encountered:
Some tools like pyspark dataframe s3 write does not set AWS system-defined metadata when writing and specifying "gzip" compression. Postgres s3_import extension fails to identify gzip file as gzip compressed. This results in a UTF-8 encoding error (reported byte sequence is the start of a gzip byte sequence). The real error is that postgres did not recognize it as gzip encoding and attempted to process it like an uncompresed text file.
If you attempt to add "Content-Encoding" = "gzip" metadata programmatically, this is added as user-defined metadata. When viewing this metadata via the AWS console after adding this metadata is appears with the key name of "x-amz-meta-content-encoding" and this is not tested for in the extension code.
I will submit a pull request.
The text was updated successfully, but these errors were encountered: