Skip to content

Commit 4dd93e4

Browse files
committed
address comments
1 parent c6c7282 commit 4dd93e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/src/arrow/util/compression_zstd.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class ZSTDCodec : public Codec {
229229
Result<CCtxPtr> CreateCCtx() const {
230230
CCtxPtr cctx{ZSTD_createCCtx(), ZSTD_freeCCtx};
231231
if (cctx == nullptr) {
232-
return Status::IOError("ZSTD_CCtx create failed: Unknown error");
232+
return Status::OutOfMemory("ZSTD_CCtx create failed");
233233
}
234234
auto ret =
235235
ZSTD_CCtx_setParameter(cctx.get(), ZSTD_c_compressionLevel, compression_level_);
@@ -248,7 +248,7 @@ class ZSTDCodec : public Codec {
248248
Result<DCtxPtr> CreateDCtx() const {
249249
DCtxPtr dctx{ZSTD_createDCtx(), ZSTD_freeDCtx};
250250
if (dctx == nullptr) {
251-
return Status::IOError("ZSTD_DCtx create failed: Unknown error");
251+
return Status::OutOfMemory("ZSTD_DCtx create failed");
252252
}
253253
for (auto& [key, value] : decompression_context_params_) {
254254
auto ret =

0 commit comments

Comments
 (0)