Skip to content

Commit

Permalink
Merge pull request ClickHouse#59 from maxmouchet/patch-1
Browse files Browse the repository at this point in the history
typo: schema interference -> schema inference
  • Loading branch information
rfraposa authored Apr 29, 2022
2 parents a22e3ac + 2449918 commit b197d4f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The JSON Object type is advantageous when dealing with complex nested structures
It is important to note that the JSON type primarily syntactically enhances JSON handling at insertion and query time, i.e., it still exploits the native existing ClickHouse types for the columns, with JSON objects represented using the [Tuple type](https://clickhouse.com/docs/en/sql-reference/data-types/tuple/). As a result, previously, manual schema handling is handled automatically with querying significantly simpler.


## Relying on Schema Interference
## Relying on Schema Inference

Note that recent versions of ClickHouse (22.4.1+) will infer the schema for JSONEachRow. This inference will also work for JSON objects with nested structures. These will be inferred as JSON object fields. For example, executing a DESCRIBE shows the detected schema for the file, including the actor fields:

Expand Down Expand Up @@ -456,4 +456,4 @@ Tuple(actor Tuple(id Array(String)), type String)

## Handling JSON Formats

ClickHouse can handle JSON in a number of formats, other than JSONEachRow and JSONAsObject. These are useful on both input and output and are described [here](https://clickhouse.com/docs/en/interfaces/formats/#json).
ClickHouse can handle JSON in a number of formats, other than JSONEachRow and JSONAsObject. These are useful on both input and output and are described [here](https://clickhouse.com/docs/en/interfaces/formats/#json).

0 comments on commit b197d4f

Please sign in to comment.