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
When running the tests/types/test_json.py under pytest, the following error occurs:
clickhouse_driver.errors.ServerException: Code: 44.
E DB::Exception: Cannot create column with type'JSON' because experimental JSON type is not allowed. Set setting allow_experimental_json_type = 1 in order to allow it.
Note: the environment was made with uv venv --python 3.9, then uv pip install ... command(s).
ClickHouse version (a docker container in use):
─➤ docker exec -it some-clickhouse-server clickhouse-client
ClickHouse client version 24.10.2.80 (official build).
Connecting to localhost:9000 as user default.
Connected to ClickHouse server version 24.10.2.
Warnings:
* Delay accounting is not enabled, OSIOWaitMicroseconds will not be gathered. You can enable it using `echo 1 > /proc/sys/kernel/task_delayacct` or by using sysctl.
The text was updated successfully, but these errors were encountered:
Related to the #357 , but this PR does not solve the root of the problem and it only eliminates some warnings, resolves some issues on test collection and a test on the JSON type is skipped via intercepting the code 50 exception. For more details, please refer to this thread.
Bug description
When running the
tests/types/test_json.py
under pytest, the following error occurs:When adding the following line after these ones:
...another error occurs:
clickhouse_driver.errors.UnknownTypeError: Code: 50. Unknown type JSON
Both lead to
clickhouse_driver
packages, but posted here cause found here.Versions:
Note: the environment was made with
uv venv --python 3.9
, thenuv pip install ...
command(s).ClickHouse version (a docker container in use):
The text was updated successfully, but these errors were encountered: