branch-2.1: [fix](hive)Fixed the issue of reading hive table with empty lzo files #43979 (#44063)

Cherry-picked from #43979

Co-authored-by: wuwenchi <wuwenchi@selectdb.com>
This commit is contained in:
github-actions[bot]
2024-11-16 16:14:50 +08:00
committed by GitHub
parent 269c2c844b
commit 48e33bfb2a
3 changed files with 42 additions and 0 deletions

View File

@ -103,6 +103,7 @@ Status LzopDecompressor::decompress(uint8_t* input, size_t input_len, size_t* in
ptr = get_uint32(ptr, &uncompressed_size);
left_input_len -= sizeof(uint32_t);
if (uncompressed_size == 0) {
*input_bytes_read += sizeof(uint32_t);
*stream_end = true;
return Status::OK();
}