Clone
Michael <lwhaymail@yahoo.com>
committed
on 23 Sep 16
ASTERIXDB-1487: fix the wrong plan when we prune the selective branch.
1. Add the test case of ASTERIX-1487 with single join branch required… Show more
ASTERIXDB-1487: fix the wrong plan when we prune the selective branch.

1. Add the test case of ASTERIX-1487 with single join branch required.

2. Disable the join branch pruning in case of unnestmap following datasourcescan.

  - We need to prune the join branch when it is NOT required by the upstream operators and its generated join key is derived from the same DATASOURCE of the other branch.

  - We SHOULD NOT prune the join branch if there exists a selective operator (UNNESTMAP, LOUNNESTMAP, LIMIT, SELECT) located between the join operator and DATASOURCESCAN.

Change-Id: I1aef69a2278853fd9f8020da6639331b367ed5ad

Reviewed-on: https://asterix-gerrit.ics.uci.edu/1119

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Yingyi Bu <buyingyi@gmail.com>

Show less

master + 7 more