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

[GitHub] [pinot] xiangfu0 commented on a diff in pull request #10797: [multistage][bugfix] fix singleton exchange

xiangfu0 commented on code in PR #10797:
URL: https://github.com/apache/pinot/pull/10797#discussion_r1203466869


##########
pinot-query-planner/src/test/resources/queries/PinotHintablePlans.json:
##########
@@ -1,6 +1,39 @@
 {
   "pinot_hint_option_tests": {
     "queries": [
+      {
+        "description": "SELECT * inner join with filter on one table",
+        "sql": "EXPLAIN PLAN FOR SELECT /*+ joinOptions(is_colocated_by_join_keys='true') */ * FROM a JOIN b ON a.col1 = b.col2 WHERE a.col3 >= 0",
+        "output": [
+          "Execution Plan",
+          "\nLogicalJoin(condition=[=($0, $6)], joinType=[inner])",
+          "\n  LogicalExchange(distribution=[single])",
+          "\n    LogicalFilter(condition=[>=($2, 0)])",
+          "\n      LogicalTableScan(table=[[a]])",
+          "\n  LogicalExchange(distribution=[single])",
+          "\n    LogicalTableScan(table=[[b]])",
+          "\n"
+        ]
+      },
+      {
+        "description": "Inner join with group by",

Review Comment:
   How is the hint been used when you have two joins and you want to singleton on just one of them or both of them?



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