Hi , Thanks for catching the column index issue. I’ve updated getObject and getBigDecimal so they report the correct JDBC column number in the localized error message. I also added tests for index 0 and for reading one column past the end. Both cases pass in English and Chinese.
Could you take another look at PR #19511 <https://github.com/apache/iotdb/pull/19511> when you have a chance? Thanks, DaZuiZui Bryan Yang <[email protected]> 于2026年12月3日周四 01:31写道: > Hi all, > > I found a JDBC bug where an exporter reading a result set by column index > can silently write the first column’s value twice. I reproduced it with the > driver built from master at c2ed594d84 against an IoTDB 2.0.13-SNAPSHOT > server. > > For example, a join selecting l.reading, r.reading returns two columns > labelled reading. When the row contains (11, 22), getInt(2) correctly > returns 22, but getObject(2) and getBigDecimal(2) both return 11 without > throwing an exception. With two DOUBLE columns, getDouble(2) likewise > returns 11.0 instead of 22.0. > > The affected getters convert the column index back to a label. Looking up > reading then selects its first occurrence. PR #19511 keeps the index > through the read and preserves first-match behavior for callers that > explicitly request a column by label. > > I verified the fix with the same join. All affected getters returned the > right-hand value, and all 240 JDBC tests and 162 service-rpc tests passed > locally. The PR includes a regression test covering duplicate labels and > SQL NULL. > > I’d appreciate a review. Issue #19510 > <https://github.com/apache/iotdb/issues/19510> · PR #19511 > <https://github.com/apache/iotdb/pull/19511> > > Thanks, > DaZuiZui >
