IndexOutOfRange thrown from In-Memory when using union on owned types #32159
Labels
closed-out-of-scope
This is not something that will be fixed/implemented and the issue is closed.
customer-reported
While using in-memory db with an entity that has an owned entity the combination of filter + concat/union and select produces an IndexOutOfRange when requesting the results.
Project with minimun to reproduce the error here
Entities:
Contex configuration
Query
Please note that this is a very simplified version of our production code, so
query.Union(query)
might not make sense at first but they have different filters, but with only this i can reproduce the error.For the error to occur all of these have to be in the query:
.Where(e => e.Owned.Property2)
or any filter by a property of the owned entityquery.Union(query)
or Concat.Select(e => e.Owned.Property2)
or any select group that includes a property of the owned entityand the table must contain at least one element.
Stack Traces
efcore debug output
Version information
net8.0:
net7.0:
The text was updated successfully, but these errors were encountered: