Commit 1b04cb2
committed
Make the JSON tests server-version tolerant
CI runs against ClickHouse 24.8 and 25.3 LTS as well as latest, and both
failures were server differences rather than driver bugs:
- 24.8 rejects the JSON type outright (it was experimental there), so the
module now probes for a usable JSON type and skips if there is none.
- 25.3 coerces a heterogeneous array to String where later servers keep
Int64/String/Bool as separate variants. Both are valid on the wire, so the
mixed-array case now pins the shape and accepts either representation.1 parent 1b25cfb commit 1b04cb2
1 file changed
Lines changed: 31 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
11 | 26 | | |
12 | 27 | | |
13 | 28 | | |
| |||
46 | 61 | | |
47 | 62 | | |
48 | 63 | | |
49 | | - | |
50 | 64 | | |
51 | 65 | | |
52 | 66 | | |
| |||
60 | 74 | | |
61 | 75 | | |
62 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
63 | 93 | | |
64 | 94 | | |
65 | 95 | | |
| |||
0 commit comments