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.
Recommendation: Keep open — needs info from the reporter
Ask the reporter whether IntelliJ also shows SELECT [tuple(toUUID('550e8400-e29b-41d4-a716-446655440000'))] (an unnamed tuple) as com.clickhouse.jdbc.types.Array@…. The driver gives the same result for this query as for the named tuple, so the cause is not clear yet.
Category: Bug
Classification: impact: none · area: Data types & formats (Array(Tuple))
Status on main: Not run: needs IntelliJ IDEA — the JDBC results of named and unnamed tuple arrays are the same. Release 0.9.8 gives the same results as main.
Breaking change: No — can be done without a break, if getObject() keeps returning java.sql.Array.
Duplicates / related: No others.
Analysis: The issue's contrast query [('…')] is Array(String), not a tuple array: ('…') is a string in parentheses. For Array(Tuple(UUID)) and Array(Tuple(id UUID)), jdbc-v2 returns the same java.sql.Array, the same base type OTHER (jdbc-v2/src/main/java/com/clickhouse/jdbc/internal/JdbcUtils.java:99), and the same getArray() contents; only the type name is different. com.clickhouse.jdbc.types.Array (jdbc-v2/src/main/java/com/clickhouse/jdbc/types/Array.java:16) has no toString(), so getObject().toString() gives Array@… for every array column, also for Array(String).
Reproduction: complete program and output
Changed from the issue's steps: added an unnamed tuple (case 3), and the named tuple with CAST (case 4), because the issue's step 3 (case 2) fails with code 27 on ClickHouse 26.11. It runs on 26.3.
Activity
polyglotAI-bot commentedon Nov 27, 2026
Recommendation: Keep open — needs info from the reporter
Ask the reporter whether IntelliJ also shows
SELECT [tuple(toUUID('550e8400-e29b-41d4-a716-446655440000'))](an unnamed tuple) ascom.clickhouse.jdbc.types.Array@…. The driver gives the same result for this query as for the named tuple, so the cause is not clear yet.main: Not run: needs IntelliJ IDEA — the JDBC results of named and unnamed tuple arrays are the same. Release 0.9.8 gives the same results asmain.getObject()keeps returningjava.sql.Array.Analysis: The issue's contrast query
[('…')]isArray(String), not a tuple array:('…')is a string in parentheses. ForArray(Tuple(UUID))andArray(Tuple(id UUID)), jdbc-v2 returns the samejava.sql.Array, the same base typeOTHER(jdbc-v2/src/main/java/com/clickhouse/jdbc/internal/JdbcUtils.java:99), and the samegetArray()contents; only the type name is different.com.clickhouse.jdbc.types.Array(jdbc-v2/src/main/java/com/clickhouse/jdbc/types/Array.java:16) has notoString(), sogetObject().toString()givesArray@…for every array column, also forArray(String).Reproduction: complete program and output
Changed from the issue's steps: added an unnamed tuple (case 3), and the named tuple with
CAST(case 4), because the issue's step 3 (case 2) fails with code 27 on ClickHouse 26.11. It runs on 26.3.Output on
main(8480ca001), ClickHouse 26.11.2.4:Output on
main(8480ca001), ClickHouse 26.3.66.4 (release 0.9.8 gives the same lines):Automated triage by Polyglot AI. A maintainer makes the final decision.