-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tuple Insert from JSONEachRow not working #64242
Comments
You are declaring an array, not a tuple. The correct way would be:
|
I copied the example directly from the documentation. This was working for
us until an attempted upgrade.
…On Thu, May 23, 2024, 6:00 AM Raúl Marín ***@***.***> wrote:
You are declaring an array, not a tuple.
The correct way would be:
INSERT INTO http ***@***.***`, clientip, request, status, size) FORMAT JSONEachRow
***@***.***":893964617,"clientip":"40.135.0.0","request":{"method":"GET", "path":"/images/hm_bg.jpg", "version":"HTTP/1.0"},"status":200,"size":24736}
—
Reply to this email directly, view it on GitHub
<#64242 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZBUUNYF75ZUOPBUDWZWWTZDW44DAVCNFSM6AAAAABIEQOQMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRWG4YTAMZSG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
It seems the documentation is wrong. Which version did you check that it was working? https://fiddle.clickhouse.com/e60fbefc-150e-4248-ab87-78d9a0005a29 |
It was working up to 22.5
…On Thu, May 23, 2024, 6:45 AM Raúl Marín ***@***.***> wrote:
It seems the documentation is wrong. Which version did you check that it
was working?
https://fiddle.clickhouse.com/e60fbefc-150e-4248-ab87-78d9a0005a29
—
Reply to this email directly, view it on GitHub
<#64242 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZBUUMOBFG5HZ3VK2NARF3ZDXCFPAVCNFSM6AAAAABIEQOQMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRWG44TOOJYGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
It doesn't work in 22.5: https://fiddle.clickhouse.com/ad77fdc9-cf61-4cf0-b5a3-2279700116d7 |
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 |
I have updated the description with the fiddle, the fixed query copy, and the last working version |
Describe what's wrong
Using Clickhouse 24.3.3.102, I cannot follow the following from the documentation:
Does it reproduce on the most recent release?
The list of releases
How to reproduce
Error:
Expected behavior
Success
Error message and/or stacktrace
Seems it is asking for Tuples to have their field names included in this input format.
This is working in 22.5 : https://fiddle.clickhouse.com/227d593c-10ad-4be6-ab8c-13c6f781c707 but not past that
The text was updated successfully, but these errors were encountered: