Skip to content

Commit

Permalink
fix core
Browse files Browse the repository at this point in the history
  • Loading branch information
hubgeter committed Nov 27, 2023
1 parent 3f8ba47 commit df296cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion be/src/util/block_compression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ class HadoopLz4BlockCompression : public Lz4BlockCompression {
(uint8_t*)output->data, output->size, &decompressed_len,
&stream_end, &more_input_bytes, &more_output_bytes);
//try decompress use hadoopLz4 ,if failed fall back lz4.
return (st != Status::OK()) ? Lz4BlockCompression::decompress(input, output) : Status::OK();
return (st != Status::OK() || stream_end != true)
? Lz4BlockCompression::decompress(input, output)
: Status::OK();
}

private:
Expand Down

0 comments on commit df296cb

Please sign in to comment.