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
Getting asynch.errors.UnknownTypeError when inserting data into a Date32 field:
File "lib/python3.11/site-packages/asynch/proto/columns/__init__.py", line 144, in get_column_by_spec
raise UnknownTypeError("Unknown type {}".format(e.args[0]))
asynch.errors.UnknownTypeError: Code: 50. Unknown type Date32
Here is a minimal script to reproduce the bug:
importasynciofromdatetimeimportdateimportasynchasyncdefmain():
pool=awaitasynch.create_pool(minsize=5)
asyncwithpool.acquire() asconn:
asyncwithconn.cursor() ascursor:
awaitcursor.execute('CREATE DATABASE IF NOT EXISTS test')
awaitcursor.execute('CREATE TABLE if not exists test.test (date Date32) ENGINE = MergeTree order by date')
awaitcursor.execute('INSERT INTO test.test (date) VALUES', [{'date': date.today()}])
asyncio.run(main())
The text was updated successfully, but these errors were encountered:
Getting
asynch.errors.UnknownTypeError
when inserting data into aDate32
field:Here is a minimal script to reproduce the bug:
The text was updated successfully, but these errors were encountered: