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
When inserting data into a table from input using the method Cient.execute(query, data), the data gets inserted into the table but the python code raises an exception: 'Unexpected packet from server (expected Data, Exception, Log or TableColumns, got Progress)'
To Reproduce
deftest_insert_from_input(self):
withself.create_table('a Int8'):
data= [{'a': 1}]
self.client.execute(
"INSERT INTO test (a) ""SELECT a from input ('a Int8')",
data
)
query='SELECT * FROM test'inserted=self.emit_cli(query)
self.assertEqual(inserted, '1\n')
Expected behavior
The python code should not raise an exception when receiving a packet of type: ServerPacketTypes.PROGRESS.
It should instead keep listening for new packets until its gets something else than Progress (e.g Exception).
Versions
Version of the package: 0.2.0 and 0.2.4 (I have just tried with these 2)
Clickhouse version: 22.3.6.5 (the bug does not occur on 21.6.9.7)
Python version: 3.8
The text was updated successfully, but these errors were encountered:
carlosfy
pushed a commit
to carlosfy/clickhouse-driver-fix
that referenced
this issue
Aug 4, 2022
Describe the bug
When inserting data into a table from input using the method Cient.execute(query, data), the data gets inserted into the table but the python code raises an exception: 'Unexpected packet from server (expected Data, Exception, Log or TableColumns, got Progress)'
To Reproduce
Expected behavior
The python code should not raise an exception when receiving a packet of type: ServerPacketTypes.PROGRESS.
It should instead keep listening for new packets until its gets something else than Progress (e.g Exception).
Versions
The text was updated successfully, but these errors were encountered: