Clone
Dmitry Lychagin <dmitry.lychagin@couchbase.com>
committed
on 20 Jul 18
[ASTERIXDB-2417][COMP] Fix issues with LIMIT clause
- user model changes: yes
- storage format changes: no
- interface changes: no

Details:… Show more
[ASTERIXDB-2417][COMP] Fix issues with LIMIT clause

- user model changes: yes

- storage format changes: no

- interface changes: no

Details:

- Fixed NPE in optimizer when limit/offset is non-integer

- Allow float/double values that are integers in limit/offset

- Make consistent limit/offset value types (integer) between

 runtime and optimizer rules

- Add internal function treat-as-integer() that returns integer

 if input number conforms to the integer type or fails otherwise

Change-Id: I986fab3e79b072aa2441af293f3e16c3f37bf508

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

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

Contrib: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

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

Reviewed-by: Till Westmann <tillw@apache.org>

Show less

master + 2 more