JetBrains/xodus-dnq

Union and plus operations should return a query of the common base type

sedovalx opened this issue · 1 comments

Otherwise, sorting over the result of the union/plus returns incomplete iterable. Such a sort returns items of the left part of the union/plus. It happens because the result of the union/plus inherits the entityType of the left part. When the result is passed into the queryEngine to sort over a property the engine returns only the entities of the passed entity type.

Merged in #50