Clone
Dmitry Lychagin <dmitry.lychagin@couchbase.com>
committed
on 15 Dec 17
[ASTERIXDB-2170][SQL] Fix resolution order of implicit field access
- user model changes: yes
- storage format changes: no
- interface chang… Show more
[ASTERIXDB-2170][SQL] Fix resolution order of implicit field access

- user model changes: yes

- storage format changes: no

- interface changes: no

Details:

- Improved name resolution rules

- Resolve field access to the nearest variable in scope

 instead of raising compile-time error

- Do not rely on type information when resolving names

- Cleanup group variable handling in GroupBy clause,

 no longer use ‘with’ map for it

- Fix ByNameToByIndexFieldAccessRule to use type environment

 of its input operator when analyzing its expression

- Fix ExternalGroupByPOperator to use input schema of its

 aggregate function when generating runtime for that function

- Fix invalid free variable computation for GroupBy clause

Change-Id: I50bc823ff53da06507a5454b30f4f500b862d4bf

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

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

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

Reviewed-by: Dmitry Lychagin <dmitry.lychagin@couchbase.com>

Show less

master + 3 more