You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
driver fails to process server answer if compression=True and "send_logs_level": "debug". Looks like server logs data block is transferred in non-compressed form.
0.2.0
Traceback (most recent call last):
File "/home/vladimir/PycharmProjects/pythonProject/main.py", line 12, in <module>
rv = client.execute("select * from system.data_type_families",
File "/home/vladimir/.local/lib/python3.9/site-packages/clickhouse_driver/client.py", line 248, in execute
rv = self.process_ordinary_query(
File "/home/vladimir/.local/lib/python3.9/site-packages/clickhouse_driver/client.py", line 446, in process_ordinary_query
return self.receive_result(with_column_types=with_column_types,
File "/home/vladimir/.local/lib/python3.9/site-packages/clickhouse_driver/client.py", line 113, in receive_result
return result.get_result()
File "/home/vladimir/.local/lib/python3.9/site-packages/clickhouse_driver/result.py", line 50, in get_result
for packet in self.packet_generator:
File "/home/vladimir/.local/lib/python3.9/site-packages/clickhouse_driver/client.py", line 129, in packet_generator
packet = self.receive_packet()
File "/home/vladimir/.local/lib/python3.9/site-packages/clickhouse_driver/client.py", line 143, in receive_packet
packet = self.connection.receive_packet()
File "/home/vladimir/.local/lib/python3.9/site-packages/clickhouse_driver/connection.py", line 477, in receive_packet
block = self.receive_data()
File "/home/vladimir/.local/lib/python3.9/site-packages/clickhouse_driver/connection.py", line 527, in receive_data
return self.block_in.read()
File "/home/vladimir/.local/lib/python3.9/site-packages/clickhouse_driver/streams/native.py", line 59, in read
info.read(self.fin)
File "/home/vladimir/.local/lib/python3.9/site-packages/clickhouse_driver/block.py", line 22, in read
field_num = read_varint(buf)
File "clickhouse_driver/varint.pyx", line 62, in clickhouse_driver.varint.read_varint
File "clickhouse_driver/bufferedreader.pyx", line 55, in clickhouse_driver.bufferedreader.BufferedReader.read_one
File "clickhouse_driver/bufferedreader.pyx", line 251, in clickhouse_driver.bufferedreader.CompressedBufferedReader.read_into_buffer
File "/home/vladimir/.local/lib/python3.9/site-packages/clickhouse_driver/streams/compressed.py", line 78, in read_block
decompressor_cls = get_decompressor_cls(method_byte)
File "/home/vladimir/.local/lib/python3.9/site-packages/clickhouse_driver/compression/__init__.py", line 26, in get_decompressor_cls
raise errors.UnknownCompressionMethod()
clickhouse_driver.errors.UnknownCompressionMethod: Code: 89.
Expected behavior
No exception. Compare with case when compression=False and "send_logs_level": "debug":
Describe the bug
driver fails to process server answer if compression=True and "send_logs_level": "debug". Looks like server logs data block is transferred in non-compressed form.
To Reproduce
Output
Expected behavior
No exception. Compare with case when compression=False and "send_logs_level": "debug":
Versions
ClickHouse server version: 21.3.3 revision 54447.
Driver version: 0.2.0
Python version: 3.9.2
The text was updated successfully, but these errors were encountered: