-
Notifications
You must be signed in to change notification settings - Fork 546
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
Row with map column not inserted when async_insert used #1186
Comments
Hi @ivenhov, thanks for reporting the issue. Just so be clear, you're using latest driver(0.3.2-patch11 and com.clickhouse.jdbc.ClickHouseDriver), right? I tried on ClickHouse 22.8 and it works well. Also the table scheme is incomplete as |
Hi I've been debugging it for a while now and cannot get it to work. Debug log shows as below, note quoted value for the last column.
when I remove SETTING I see different log
I guess I'm doing something wrong and conversion from JDBC types to Clickhouse type. At the moment I'm using From what I can gather template is build in Possibly I'm doing something wrong how I set up Spring's JDBC template. Thanks |
Thanks for providing more details and sorry for the inconvenience at your end. When
We don't have the example now. Do you have a simplified repo for reproducing the issue? I can help to debug and see if it's a bug in JDBC driver. |
Thanks for your suggestions Logging changes with new version
However it looks like that version also upgrades dependency of slf4j to 2.x which has a ripple effect on Spring 2.7 projects,. I'm not sure why 0.3.3 upgrades slf4j, it seems like a breaking change? I've attached example project for you using Docker with testcontainers. Class to execute is called SearchIntegrationTest. Breakpoint on waitPostCreation() and inspection of Thanks for your help with this |
FYI migration to spring boot 3.0 resolves the problem with slf4j conflict so logging in the application works ok now. Thanks |
Good to know slf4j is no longer an issue. But it sounds odd to me because it's supposed to be optional. Anyway, I made a few more changes in these days which may solve the problem. Will generate a new build tonight for you to test. As to your question, nightly build should be same as release, because we use same set of tests for build verification. Having said that, I'll release 0.4.0 tomorrow and hopefully without too many patches we can move to 0.5 soon. |
I've migrated my project to Spring Boot 3 so slf4j is no longer a problem for me. I'm not entirely sure where the problem was. Daniel |
Thanks for the update. slf4j was a transitive dependency introduced by apache httpclient, which is optional. It's been removed in nightly build and will be available in 0.4.1. |
Hi
I have a table as follows
I'm using Spring JDBC to insert data using ? parameters.
Example insert will have syntax
All works OK until I add to above INSERT
At this point row is not inserted and silently discarded.
This still works via client CLI though for some reason.
Also when map is specified as null it works as expected regardless if SETTINGS is used or not
Any help appreciated
Regards
Daniel
The text was updated successfully, but these errors were encountered: