You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regression in JDBC 0.9.8 when reading Array(Tuple(...)) with named tuple elements. #3045
Regression in JDBC 0.9.8 when reading Array(Tuple(...)) with named tuple elements.
With the official ClickHouse JDBC driver 0.9.8, IntelliJ IDEA displays Array(Tuple(id UUID)) values as: com.clickhouse.jdbc.types.Array@54c3b772
instead of the array contents.
The same query works correctly with JDBC 0.6.0.
The issue only affects named tuples. Arrays of unnamed tuples are displayed correctly.
Steps to reproduce
Connect to ClickHouse using clickhouse-jdbc:0.9.8.
Execute SELECT [('550e8400-e29b-41d4-a716-446655440000')]; Result is displayed correctly.
Execute SELECT [('550e8400-e29b-41d4-a716-446655440000')::Tuple(id UUID)]; Result is displayed as com.clickhouse.jdbc.types.Array@...
Error Log or Exception StackTrace
No exception is thrown.
The value is rendered as:
com.clickhouse.jdbc.types.Array@54c3b772
Expected Behaviour
Array(Tuple(id UUID)) should be returned through JDBC in a way that clients can display its contents, the same as in JDBC 0.6.0 and the same as Array(Tuple(UUID))
It is unclear whether this is a JDBC driver regression or an incompatibility with IntelliJ’s database viewer, but the behavior changed between JDBC 0.6.0 and 0.9.8 and is reproducible with the SQL above.
Activity