Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
I've had discussion about this on Apache Ignite Users.
The problem occurs when you want to index a non-primitive type that have same names of variables as the enclosing type, better described on forum above. As a short example:
Let's say we want to index:
public class Person
{
@QuerySqlField
long id;
@QuerySqlField
PersonData personData;
}
public class PersonData
{
@QuerySqlField
long id;
}
This will not work as it will detect indexes/query fields with same names for index Person.id and PersonData.id because the names are flattened to simply 'id'.
I am attaching a simple patch that resolves this issue. We've been running this for (3 months now) and found no problems. However we are using annotations and not XML. I am not sure the patch completely solves the problem for XML based configuration.
Attachments
Attachments
Issue Links
- is related to
-
IGNITE-2216 Duplicate field names with aliases do not work in queries.
- Closed