clickhouse-java
clickhouse-java copied to clipboard
JDBC read error - Multidimensional empty errors raise a java.lang.ArrayStoreException
Describe the bug
In some cases, when we define a column with a Multidimensional array, and we insert an empty array with less deapth than the original column. Attempting to read it causes java.lang.ArrayStoreException
Steps to reproduce
- Create a table with column
x#y#z#d#m
Array(Array(Array(Array(Nullable(String)))))) - INSERT INTO [table name] VALUES ([[]])
- Read the column and use the JDBC API
Expected behaviour
to generate a valid array