Open komape opened 2 years ago
Actually, java.sql.Array
will be converted to Object[]
, and keeps this value in Row
/Tuple
.
My preference is Object[]
to compatible with another lib/tool. And, in Tuple
should introduce the JsonArray converter.
How do you think @vietj ?
we should avoid using primitive arrays with Tuple instead of trying to use a different type than what the Tuple expects (or the default methods of Tuple should be reimplemented then).
Version
v4.2.0
Context
We have a PostgreSQL database with a column of type Array. The following line of code always returned an
JsonArray
without any problems. Once we migrated to version 4.2.x this started to throw aClassCastException
because it returns anObject
. There were no changes to the database. Our guess is that theJDBCDecoder
from #235 somehow fails to parse the content of the cell into an array and instead just returns anObject
.The documentation does'nt mention any breaking changes regarding this.
Do you have a reproducer?
No.
Steps to reproduce