JackieTien97 opened a new pull request, #16821: URL: https://github.com/apache/iotdb/pull/16821
This pull request introduces support for handling the `OBJECT` data type as a binary blob in both JDBC and session APIs, and adds integration tests to verify correct behavior. The main changes include updating how `OBJECT` columns are processed and retrieved, and providing comprehensive test coverage for object and blob queries. ### JDBC and Session API Enhancements * Updated `getBlob(int columnIndex)` and `getBlob(String columnLabel)` in `ClusterTestResultSet.java` to support retrieving blob values from all underlying result sets and comparing them, instead of throwing `UnsupportedOperationException`. [[1]](diffhunk://#diff-d15f055a15e1c5eb9edb0020ed41a2589a07c90d64110687cc3c867e922f9723L784-R789) [[2]](diffhunk://#diff-d15f055a15e1c5eb9edb0020ed41a2589a07c90d64110687cc3c867e922f9723L809-R818) * Modified `IoTDBJDBCResultSet.java` so that both `BLOB` and `OBJECT` data types are returned as byte arrays, ensuring consistent binary handling for object columns. ### Query Engine and Transformer Adjustments * Changed `ColumnTransformerBuilder.java` to treat the `READ_OBJECT` function as returning a `BLOB` type instead of `OBJECT`, aligning internal type handling for object columns with binary semantics. [[1]](diffhunk://#diff-3b0b89be6f0edd72821d73b79d483f69cff0bcd87b29b4d645fc733c0f9ad4e8L1459-R1461) [[2]](diffhunk://#diff-3b0b89be6f0edd72821d73b79d483f69cff0bcd87b29b4d645fc733c0f9ad4e8L1471-R1470) * Removed unused import for `ObjectType.OBJECT` in `ColumnTransformerBuilder.java`. ### Integration Test Coverage * Added a new test class `IoTDBObjectQueryIT.java` to verify object and blob query behaviors via both JDBC and session APIs, including assertions for binary content, string representations, and correct query results. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
