abhioncbr commented on code in PR #10765:
URL: https://github.com/apache/pinot/pull/10765#discussion_r1193066014
##########
pinot-query-runtime/src/test/java/org/apache/pinot/query/runtime/QueryRunnerTestBase.java:
##########
@@ -156,7 +157,11 @@ protected List<Object[]> queryH2(String sql)
while (h2ResultSet.next()) {
Object[] row = new Object[columnCount];
for (int i = 0; i < columnCount; i++) {
- row[i] = h2ResultSet.getObject(i + 1);
+ if (h2ResultSet.getMetaData().getColumnType(i + 1) == Types.OTHER) {
+ row[i] = h2ResultSet.getString(i + 1);
Review Comment:
This invokes the
[method](http://javadox.com/com.h2database/h2/1.4.200/org/h2/value/ValueJson.html#getString())
to get the correct String data for `json` column data type.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]