Clone
Dmitry Lychagin <dmitry.lychagin@couchbase.com>
committed
on 21 Jul
[ASTERIXDB-2760][COMP] Improve function call resolution
- user model changes: no
- storage format changes: no
- interface changes: no

Detai… Show more
[ASTERIXDB-2760][COMP] Improve function call resolution

- user model changes: no

- storage format changes: no

- interface changes: no

Details:

- Refactor function call resolution and perform it earlier,

 before GROUP BY expressions are substituted

- Consolidate gby-expr testcases into a single one

- Introduce QueryTranslator.handleDeclareFunctionStatement()

- Rename existing SqlppCaseExpressionVisitor to

 SqlppCaseAggregateExtractionVisitor

- Move CASE expression rewriting code from

 SqlppBuiltinFunctionRewriteVisitor into a separate visitor:

 SqlppCaseExpressionVisitor

- Remove function name normalization code from SqlppAstPrintVisitor

 and updated existing reference results

Change-Id: I527ffbff487b8534f66ca27d48788e96c65aec9b

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/7264

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>

Show less