fix: check the X-ClickHouse-Exception-Code for err code#350
fix: check the X-ClickHouse-Exception-Code for err code#350dermasmid wants to merge 3 commits intoClickHouse:mainfrom
Conversation
It does not fix it for select streaming, as the headers will already be received; this is only for inserts. |
|
ok, so this solves a similar issue we had, should i open a separate issue for that? |
No, this is fine. Thanks for the contribution! |
|
@dermasmid, is it possible to add an integration test for that? And one more question: in case of a CH error rejection, we usually return an instance of |
|
in theory the error should be parsed just fine, since it's using regex to find the error from the body: ill try to get a test in too |
|
@dermasmid, thanks a bunch for your contribution! We're ingesting the PR here: |
Summary
use the
X-ClickHouse-Exception-Codeheader ClickHouse/ClickHouse#8786Related: #332 (similar issue can happen with inserts)