Add IT for session and jdbc query #16821
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.




This pull request introduces support for handling the
OBJECTdata type as a binary blob in both JDBC and session APIs, and adds integration tests to verify correct behavior. The main changes include updating howOBJECTcolumns are processed and retrieved, and providing comprehensive test coverage for object and blob queries.JDBC and Session API Enhancements
getBlob(int columnIndex)andgetBlob(String columnLabel)inClusterTestResultSet.javato support retrieving blob values from all underlying result sets and comparing them, instead of throwingUnsupportedOperationException. [1] [2]IoTDBJDBCResultSet.javaso that bothBLOBandOBJECTdata types are returned as byte arrays, ensuring consistent binary handling for object columns.Query Engine and Transformer Adjustments
ColumnTransformerBuilder.javato treat theREAD_OBJECTfunction as returning aBLOBtype instead ofOBJECT, aligning internal type handling for object columns with binary semantics. [1] [2]ObjectType.OBJECTinColumnTransformerBuilder.java.Integration Test Coverage
IoTDBObjectQueryIT.javato verify object and blob query behaviors via both JDBC and session APIs, including assertions for binary content, string representations, and correct query results.