You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "abhioncbr (via GitHub)" <gi...@apache.org> on 2023/05/14 02:57:12 UTC
[GitHub] [pinot] abhioncbr commented on a diff in pull request #10765: [multistage]: Added support for Json Data Type.
abhioncbr commented on code in PR #10765:
URL: https://github.com/apache/pinot/pull/10765#discussion_r1193065738
##########
pinot-query-runtime/src/test/java/org/apache/pinot/query/runtime/QueryRunnerTestBase.java:
##########
@@ -386,14 +391,22 @@ protected void addTableToH2(String tableName, Schema schema)
h2FieldNamesAndTypes.toArray(new String[h2FieldNamesAndTypes.size()])) + ")").execute();
}
+ private String getH2InsertQueryParam(String h2FieldNameAndType) {
+ String type = h2FieldNameAndType.split(" ")[1];
+ if ("json".equalsIgnoreCase(type)) {
+ return "? FORMAT JSON";
Review Comment:
This is needed for the comparison with Pinot rows. As per the [documentation](https://www.h2database.com/html/datatypes.html#json_type), this will save the data in `java.lang.String` format in H2 db.
--
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: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org