Comments (7)
You are declaring an array, not a tuple.
The correct way would be:
INSERT INTO http (`@timestamp`, clientip, request, status, size) FORMAT JSONEachRow
{"@timestamp":893964617,"clientip":"40.135.0.0","request":{"method":"GET", "path":"/images/hm_bg.jpg", "version":"HTTP/1.0"},"status":200,"size":24736}
from clickhouse.
from clickhouse.
It seems the documentation is wrong. Which version did you check that it was working?
https://fiddle.clickhouse.com/e60fbefc-150e-4248-ab87-78d9a0005a29
from clickhouse.
from clickhouse.
It doesn't work in 22.5: https://fiddle.clickhouse.com/ad77fdc9-cf61-4cf0-b5a3-2279700116d7
from clickhouse.
Error on processing query: Code: 26. DB::ParsingException: Cannot parse JSON string: expected opening quote:
Apologies, it looks like the copy from the documentation included a newline character. It does work in 22.5: https://fiddle.clickhouse.com/227d593c-10ad-4be6-ab8c-13c6f781c707
from clickhouse.
I have updated the description with the fiddle, the fixed query copy, and the last working version
from clickhouse.
Related Issues (20)
- [Parallel replicas] member call on null pointer of type 'DB::IQueryTreeNode'
- Replicated database engine: Assert `checkDigestValid` HOT 1
- [LOGICAL_ERROR] Distributed query: 'Expected the argument nº#n ('' of type n) to have 2 rows, but it has 0'.
- AddressSanitizer: global-buffer-overflow (multiif + short_circuit_function_evaluation) HOT 1
- S3Queue deduplication based on etag (for case, when objects can be replaced)
- The NETWORK_ERROR occurs frequently HOT 1
- build problem in building clickhouse on ubuntu HOT 6
- Logical error: 'RangeReader read 1 rows, but 8192 expected.' HOT 1
- Unexpected behavior in DateTime64 handling HOT 3
- Maybe a bug about the system.parts_column HOT 2
- Unexpected exception when trying to read from an encrypted parquet file HOT 2
- Dictionary, which will allow for optimal updates
- CREATE TABLE ... CLONE AS ...
- MySQL interface not compatiable with DuckDB scanner HOT 1
- Consistency of INSERT/SELECT with multiple clients HOT 1
- Named tuples in Pretty format should be displayed as JSON (or better)
- `clickhouse-local`: if there is input, use it as a default table in SELECT instead of system.one
- Cluster engines (such as `s3Cluster`) should be used automatically with parallel replicas
- Missing progress bar for a query with subquery in IN
- Provide HTTP response headers in a virtual column in the response of the `url` table function/engine
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clickhouse.