hsyuan
hsyuan
But orca generated plan without broadcast motion: ``` explain select * from test5, test6 where test5.col2=test6.col2; QUERY PLAN ------------------------------------------------------------------------------- Gather Motion 3:1 (slice1; segments: 3) (cost=0.00..862.00 rows=5 width=18) -> Hash...
And why are there 2 limit node in planner's subplan?
Should it be `limit 1 offset 10` instead of `limit 10 offset 1`? Just checked, it doesn't matter.
Can you create a JIRA for this and link this PR with JIRA?
Sorry, I found the JIRA: https://issues.apache.org/jira/browse/CALCITE-2772
Another example is [ST_Reclass](https://postgis.net/docs/RT_ST_Reclass.html) in PostGIS. Variable argument function is helpful.
I will find time to take a look.
BTW, I think the plan in the test case is wrong.
Can you rebase on latest master and adopt @jinxing64 's suggestion?
@shenh062326 I don't think the failed test is related with your change.