We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We use BZIP2 compression on our s3 files, it doesn't seem possible to specify this with the CopyCommand. http://docs.aws.amazon.com/redshift/latest/dg/copy-parameters-data-format.html#copy-bzip2
>>> import sqlalchemy as sa >>> from redshift_sqlalchemy.dialect import CopyCommand >>> table = sa.table("foo") >>> CopyCommand(table, "s3://bucket/data/", "XXXYYYZZZXXXYYYZZZ11", "XXXYYYZZZXXXYYYZZZ11XXXYYYZZZXXXYYYZZZ11", format="BZIP2") Traceback (most recent call last): File "<console>", line 1, in <module> File "/virtualenv/local/lib/python2.7/site-packages/sqlalchemy_redshift/commands.py", line 362, in __init__ self.formats) ValueError: "format" parameter must be one of ['CSV', 'JSON', 'AVRO', None] >>> CopyCommand(table, "s3://bucket/data/", "XXXYYYZZZXXXYYYZZZ11", "XXXYYYZZZXXXYYYZZZ11XXXYYYZZZXXXYYYZZZ11", compression="BZIP2") Traceback (most recent call last): File "<console>", line 1, in <module> File "/virtualenv/local/lib/python2.7/site-packages/sqlalchemy_redshift/commands.py", line 368, in __init__ self.compression_types ValueError: "compression" parameter must be one of ['GZIP', 'LZOP']
The text was updated successfully, but these errors were encountered:
@rectalogic should be a very easy PR.
Sorry, something went wrong.
Support BZIP2 compression in COPY.
711c18b
Fixes sqlalchemy-redshift#110
17d58b2
c3574c6
No branches or pull requests
We use BZIP2 compression on our s3 files, it doesn't seem possible to specify this with the CopyCommand.
http://docs.aws.amazon.com/redshift/latest/dg/copy-parameters-data-format.html#copy-bzip2
The text was updated successfully, but these errors were encountered: