Skip to content

Commit 5ff9a5a

Browse files
committed
fix test case for json type, and add allow_experimental_object_type setting to json field document.
1 parent b9c750d commit 5ff9a5a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/Fields.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,9 @@ Neither Nullable nor LowCardinality is supported.
646646
When query from the database, JSONField get dict or list.
647647

648648
The JSON data type is an experimental feature. To use it, set `allow_experimental_object_type = 1` in the database settings.
649+
650+
**Note:** From [ClickHouse 24.8 LTS](https://clickhouse.com/blog/clickhouse-release-24-08), set `allow_experimental_object_type = 1` to use JSON type.
651+
649652
For example:
650653

651654
```python

tests/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"alter_sync": 2,
4848
"allow_suspicious_low_cardinality_types": 1,
4949
"allow_experimental_object_type": 1,
50+
"allow_experimental_json_type": 1,
5051
},
5152
},
5253
"TEST": {"cluster": "cluster", "managed": False},
@@ -64,6 +65,7 @@
6465
"alter_sync": 2,
6566
"allow_suspicious_low_cardinality_types": 1,
6667
"allow_experimental_object_type": 1,
68+
"allow_experimental_json_type": 1,
6769
},
6870
},
6971
"TEST": {"cluster": "cluster", "managed": False},

0 commit comments

Comments
 (0)