File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,14 @@ namespace iceberg {
3131enum class ErrorKind {
3232 kAlreadyExists ,
3333 kCommitStateUnknown ,
34+ kDecompressError ,
3435 kInvalidArgument ,
3536 kInvalidExpression ,
3637 kInvalidSchema ,
3738 kIOError ,
3839 kJsonParseError ,
3940 kNoSuchNamespace ,
4041 kNoSuchTable ,
41- kDecompressError ,
4242 kNotFound ,
4343 kNotImplemented ,
4444 kNotSupported ,
@@ -74,14 +74,14 @@ using Status = Result<void>;
7474
7575DEFINE_ERROR_FUNCTION (AlreadyExists)
7676DEFINE_ERROR_FUNCTION (CommitStateUnknown)
77+ DEFINE_ERROR_FUNCTION (DecompressError)
7778DEFINE_ERROR_FUNCTION (InvalidArgument)
7879DEFINE_ERROR_FUNCTION (InvalidExpression)
7980DEFINE_ERROR_FUNCTION (InvalidSchema)
8081DEFINE_ERROR_FUNCTION (IOError)
8182DEFINE_ERROR_FUNCTION (JsonParseError)
8283DEFINE_ERROR_FUNCTION (NoSuchNamespace)
8384DEFINE_ERROR_FUNCTION (NoSuchTable)
84- DEFINE_ERROR_FUNCTION (DecompressError)
8585DEFINE_ERROR_FUNCTION (NotFound)
8686DEFINE_ERROR_FUNCTION (NotImplemented)
8787DEFINE_ERROR_FUNCTION (NotSupported)
Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ class ZlibImpl {
3939
4040 Status Init () {
4141 // Maximum window size
42- static int kWindowBits = 15 ;
42+ constexpr int kWindowBits = 15 ;
4343 // Determine if this is libz or gzip from header.
44- static int kDetectCodec = 32 ;
44+ constexpr int kDetectCodec = 32 ;
4545 int ret = inflateInit2 (&stream_, kWindowBits | kDetectCodec );
4646 if (ret != Z_OK) {
4747 return DecompressError (" inflateInit2 failed, result:{}" , ret);
You can’t perform that action at this time.
0 commit comments