Skip to content

Commit d244cea

Browse files
committed
In intro doc, adjust error message returned by ClickHouse
1 parent 56a8126 commit d244cea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/src/intro.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ ClickHouse provides a secondary type function `dynamicType()`
238238
to get at the underlying type,
239239
but we can't use that function on the top-level value
240240
```sh
241-
$ clickhouse -q "SELECT dynamicType(*) FROM 'example.json'"
242-
Code: 43. DB::Exception: First argument for function dynamicType must be Dynamic, got Array(Dynamic) instead: In scope SELECT toTypeName(*), dynamicType(*) FROM `example.json`. (ILLEGAL_TYPE_OF_ARGUMENT)
241+
$ clickhouse -q "SELECT dynamicType(a) FROM 'example.json'"
242+
Code: 43. DB::Exception: First argument for function dynamicType must be Dynamic, got Array(Dynamic) instead: In scope SELECT dynamicType(a) FROM `example.json`. (ILLEGAL_TYPE_OF_ARGUMENT)
243243
```
244244
Instead we must ask for the type of the array element
245245
```sh

0 commit comments

Comments
 (0)