Closed julianste closed 2 years ago
Yes, it is a bug Fixed in PR https://github.com/Tomme/dbt-athena/pull/94 And I believe that default write_compression = none won't work, since this connector worked perfectly until today - most likely it is a change on Athena side for parquet files
@SOVALINUX yes I also think there was a change on Athena side, since it only failed as of last night.
Regarding default write_compression I think it should still be none
, in this case the Athena default is applied.
If you hardcode to GZIP then the athena default for ORC, which is ZLIB, would be overwritten.
It would probably even fail, since GZIP is not supported for ORC.
The bug was caused by a difference in jinja between none
and not defined
.
So I think PR #92 should be sufficient.
Thank you @julianste for the fix, closing now.
We're getting an InvalidRequestException when specifying format 'parquet' without specifying the compression algorithm, in which case the default compression algorithms should be used (gzip in case of parquet)
Exception:
Seems that in the
create_table_as.sql
no default forwrite_compression
is defined, which results in an empty string''
(instead of just not specifyingwrite_compression
at all which would result in the default (gzip) being used.) Should be fixed by this PRStacktrace: