walterddr commented on code in PR #10797:
URL: https://github.com/apache/pinot/pull/10797#discussion_r1204351101
##########
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:
there's no way to do it if you write it in 2 joins. for this use case the
first join needs to be written as a "WITH table"
--
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]