Crash on empty array of list() operator

Issue #49 resolved
Roman Simakov created an issue
./iaql -aq "project(filter(list(),regex(schema,'^temp.*')),schema)"

On one instance PullSGArray tries to fetch the same array. ListArrayBuilder creates chunks for every attribute but if there is no any array that chunks have no one item. In the same time isEmpty() method does not take into account it!!! It depends on LRU position of chunk! It looks strange but change it requires a lot of code refactoring. It's not for now. May be we'll fix it when will switch to chunk-per-time array processing. For now we just should make lazy chunk creation only when we already have an item to write into it!

Comments (2)

  1. Log in to comment