Skip to content

Commit d09539c

Browse files
committed
fix: corrent type mismatch in avro zstd decompression.
1 parent 1bdc24e commit d09539c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyiceberg/avro/codecs/zstandard_codec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def decompress(data: bytes) -> bytes:
3939
if not chunk:
4040
break
4141
uncompressed.extend(chunk)
42-
return uncompressed
42+
return bytes(uncompressed)
4343

4444
except ImportError:
4545

tests/utils/test_manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def test_write_empty_manifest() -> None:
358358

359359

360360
@pytest.mark.parametrize("format_version", [1, 2])
361-
@pytest.mark.parametrize("compression", ["null", "deflate"])
361+
@pytest.mark.parametrize("compression", ["null", "deflate", "zstd"])
362362
def test_write_manifest(
363363
generated_manifest_file_file_v1: str,
364364
generated_manifest_file_file_v2: str,

0 commit comments

Comments
 (0)