You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/12/07 05:09:07 UTC

[GitHub] [pinot] 61yao commented on a diff in pull request #9929: [multistage][reland] fix leaf stage return data schema

61yao commented on code in PR #9929:
URL: https://github.com/apache/pinot/pull/9929#discussion_r1041763694


##########
pinot-query-runtime/src/test/resources/queries/Distincts.json:
##########
@@ -0,0 +1,47 @@
+{
+  "general_distinct": {
+    "tables": {
+      "tbl": {
+        "schema": [
+          { "name": "intCol", "type": "INT" },
+          { "name": "doubleCol", "type": "DOUBLE" },
+          { "name": "strCol", "type": "STRING" },
+          { "name": "boolCol", "type": "BOOLEAN" }
+        ],
+        "inputs": [
+          [ 2, 300, "a", true ],
+          [ 2, 400, "a", true ],
+          [ 3, 100, "b", false ],
+          [ 100, 1, "b", false ],
+          [ 101, 1.01, "c", false ],
+          [ 150, 1.5, "c", false ],
+          [ 175, 1.75, "c", true ]
+        ]
+      }
+    },
+    "queries": [
+      { "sql":  "SELECT DISTINCT intCol FROM {tbl}" },

Review Comment:
   Can we add 
   select distinct intCol, intCol FROM {tbl1} 
   select distinct col, 1, 2, 3 FROM {tbl1}
   



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