[ASTERIXDB-2986][COMP] Fix bug in ExtractFunctionsFromJoinConditionRule
authorDmitry Lychagin <dmitry.lychagin@couchbase.com>
Mon, 15 Nov 2021 22:28:01 +0000 (14:28 -0800)
committerDmitry Lychagin <dmitry.lychagin@couchbase.com>
Tue, 16 Nov 2021 02:25:17 +0000 (02:25 +0000)
commit379824432cc0e44907c5e36dcc28b71c7b546b68
tree44240c5a99d3cab1f657c3d5142314d56a31d1ed
parent35fd66de55fb1727c435336c9dd27146d2ffd0de
[ASTERIXDB-2986][COMP] Fix bug in ExtractFunctionsFromJoinConditionRule

- user model changes: no
- storage format changes: no
- interface changes: no

Details:
- Fix NullPointerException in ExtractFunctionsFromJoinConditionRule
  when one condition could be extracted but another could not
- Add testcase

Change-Id: Ib2cca56f36c9270fc337aab97f5c29fbcbb51543
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/14083
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Dmitry Lychagin <dmitry.lychagin@couchbase.com>
Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com>
asterixdb/asterix-app/src/test/resources/optimizerts/queries/joins/query-ASTERIXDB-2986.sqlpp [new file with mode: 0644]
asterixdb/asterix-app/src/test/resources/optimizerts/results/joins/query-ASTERIXDB-2986.plan [new file with mode: 0644]
hyracks-fullstack/algebricks/algebricks-rewriter/src/main/java/org/apache/hyracks/algebricks/rewriter/rules/ExtractFunctionsFromJoinConditionRule.java