>COMPRESSION_CODEC set to gzip
compute stats functional.alltypes;
>Query: compute stats functional.alltypes
>ERROR: Invalid compression codec: 2
This kind of issue is typical with query options and compute stats - compute stats converts enums to their number representation, which is handled by most query options, see https://github.com/apache/impala/blob/adced30896ade0f71e64cc2d5bad1cd9f43119b7/be/src/service/query-options.cc#L532 for an example.