clickhouse-java icon indicating copy to clipboard operation
clickhouse-java copied to clipboard

JDBC read error - Multidimensional empty errors raise a java.lang.ArrayStoreException

Open mzitnik opened this issue 1 year ago • 0 comments

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

  1. Create a table with column x#y#z#d#m Array(Array(Array(Array(Nullable(String))))))
  2. INSERT INTO [table name] VALUES ([[]])
  3. Read the column and use the JDBC API

Expected behaviour

to generate a valid array

mzitnik avatar Jan 08 '24 16:01 mzitnik