-
Notifications
You must be signed in to change notification settings - Fork 579
[jdbc-v2] incorrect wasNull flag for Array #2266
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
Comments
Maybe forgot to update wasNull flag here? |
Good day, @Onajk! |
Hi, you didn't actually read the value of |
One thing I forgot to mention. ClickHouse version I use is: ver. 24.3.12.76 |
@Onajk I made some adjustments. |
I believe that's it. Thank you |
Describe the bug
After switching to jdbc-v2 there is a problem of reading
Array
right afterNULL
value. After debugging I have discovered that result set of array haswasNull
flag set toTrue
which is creating exception on Doobie side which I use to read data from ClickHouse in Scala code.Steps to reproduce
Expected behaviour
In jdbc-v1 for version 0.7.2 there is no
wasNull = true
flag for that array and I would expect the same for jdbc-v2 for version 0.8.xCode example
And analyze the ResultSet (I don't know the methods since I was checking it in Scala)
Error log
Doobie is returning me
NonNullableColumnRead
error sayingSQL 'NULL' read at column 2 (JDBC type Array) but mapping is to a non-Option type
.I have checked that this error is happening because
wasNull
flag wasTrue
after reading the array. By checking result set I could tell that it has correctly detected that first column is Null and second is array of two String values.Configuration
"com.clickhouse" % "clickhouse-jdbc" % "0.8.2"
The text was updated successfully, but these errors were encountered: