Skip to content

JSONAsString does not support the case when the data is enclosed in array. #25517

@alexey-milovidov

Description

@alexey-milovidov

Use case

curl -s 'https://api.github.com/repos/ClickHouse/ClickHouse/issues?labels=bug&state=open' | clickhouse-local --structure 's String' --input-format JSONAsString --query 'SELECT * FROM table'
Code: 117, e.displayText() = DB::Exception: JSON object must begin with '{'.: (at row 1)
: While executing File (version 21.7.1.1)

Although it is supported for JSONEachRow: #8860
CC @Avogar @CurtizJ

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions