You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "walterddr (via GitHub)" <gi...@apache.org> on 2023/05/15 16:54:42 UTC

[GitHub] [pinot] walterddr commented on a diff in pull request #10765: [multistage]: Added support for Json Data Type.

walterddr commented on code in PR #10765:
URL: https://github.com/apache/pinot/pull/10765#discussion_r1194102710


##########
pinot-query-runtime/src/test/resources/queries/JsonType.json:
##########
@@ -0,0 +1,22 @@
+{
+  "json_data": {
+    "tables": {
+      "jsonTbl": {
+        "schema": [
+          {"name": "jsonCol", "type": "JSON"},
+          {"name": "stringCol", "type": "STRING"}
+        ],
+        "inputs": [
+          ["{\"key1\":\"val1\",\"key2\":\"val2\"}", "str1"],
+          ["{\"key11\":\"val11\",\"key22\":\"val22\"}", "str22"],
+          ["{\"key111\":\"val111\",\"key222\":{\"key222_a\":\"val222_a\"}}", "str33"]
+        ]
+      }
+    },
+    "queries": [
+      {"sql": "SELECT jsonCol FROM {jsonTbl}"},
+      {"sql": "SELECT jsonCol, stringCol FROM {jsonTbl}"},
+      {"sql": "SELECT jsonCol, stringCol FROM {jsonTbl} where stringCol='str33'"}

Review Comment:
   ah. i see so this is only to support JSON as string return? got it. that's good in its own. 



-- 
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