We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e018c8 commit f5e3e59Copy full SHA for f5e3e59
pyiceberg/avro/encoder.py
@@ -39,15 +39,15 @@ def write_boolean(self, boolean: bool) -> None:
39
Args:
40
boolean: The boolean to write.
41
"""
42
- self.write(bytearray([bool(boolean)]))
+ self.write(bytes([bool(boolean)]))
43
44
def write_int(self, integer: int) -> None:
45
"""Integer and long values are written using variable-length zig-zag coding."""
46
datum = (integer << 1) ^ (integer >> 63)
47
while (datum & ~0x7F) != 0:
48
- self.write(bytearray([(datum & 0x7F) | 0x80]))
+ self.write(bytes([(datum & 0x7F) | 0x80]))
49
datum >>= 7
50
- self.write(bytearray([datum]))
+ self.write(bytes([datum]))
51
52
def write_float(self, f: float) -> None:
53
"""Write a float as 4 bytes."""
0 commit comments