[infinispan-issues] [JBoss JIRA] (ISPN-12203) @SortableField annotation is ignored in sub-type
Gustavo Fernandes (Jira)
issues at jboss.org
Fri Aug 7 05:11:00 EDT 2020
[ https://issues.redhat.com/browse/ISPN-12203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gustavo Fernandes updated ISPN-12203:
-------------------------------------
Description:
Consider the protofile:
{code:java}
/* @Indexed */
message ProcessInstance {
/* @Field(store = Store.YES) */
optional ProcessInstanceError error = 14;
}
/* @Indexed */
message ProcessInstanceError {
/* @Field(store = Store.YES)
* @SortableField
*/
optional string nodeDefinitionId = 1;
/* @Field(store = Store.YES)
* @SortableField
*/
optional string message = 2;
}
{code}
The sortable annotations in the subtype are not taken into consideration and the query fails with:
{noformat}
SearchException: HSEARCH000301: Requested sort field(s) error.nodeDefinitionId are not configured for entity type org.infinispan.query.remote.impl.indexing.ProtobufValueWrapper mapped to index processinstances_protobuf, thus
an uninverting reader must be created. You should declare the missing sort fields using @SortableField.
{noformat}
was:
Consider the protofile:
{code}
/* @Indexed */
message ProcessInstance {
/* @Field(store = Store.YES) */
optional ProcessInstanceError error = 14;
}
/* @Indexed */
message ProcessInstanceError {
/* @Field(store = Store.YES)
* @SortableField
*/
optional string nodeDefinitionId = 1;
/* @Field(store = Store.YES)
* @SortableField
*/
optional string message = 2;
}
{code}
The sortable annotations in the subtype are not taken into consideration and the query fails with:
{noformat}
SearchException: HSEARCH000301: Requested sort field(s) error.nodeDefinitionId are not configured for entity type org.infinispan.query.remote.impl.indexing.ProtobufValueWrapper mapped to index processinstances_protobuf, thus an uninverting reader must be created. You should declare the missing sort fields using @SortableField.
{noformat}
> @SortableField annotation is ignored in sub-type
> ------------------------------------------------
>
> Key: ISPN-12203
> URL: https://issues.redhat.com/browse/ISPN-12203
> Project: Infinispan
> Issue Type: Bug
> Components: Embedded Querying, Remote Querying
> Affects Versions: 11.0.3.Final
> Reporter: Gustavo Fernandes
> Priority: Major
>
> Consider the protofile:
> {code:java}
> /* @Indexed */
> message ProcessInstance {
>
> /* @Field(store = Store.YES) */
> optional ProcessInstanceError error = 14;
> }
> /* @Indexed */
> message ProcessInstanceError {
> /* @Field(store = Store.YES)
> * @SortableField
> */
> optional string nodeDefinitionId = 1;
> /* @Field(store = Store.YES)
> * @SortableField
> */
> optional string message = 2;
> }
> {code}
> The sortable annotations in the subtype are not taken into consideration and the query fails with:
> {noformat}
> SearchException: HSEARCH000301: Requested sort field(s) error.nodeDefinitionId are not configured for entity type org.infinispan.query.remote.impl.indexing.ProtobufValueWrapper mapped to index processinstances_protobuf, thus
> an uninverting reader must be created. You should declare the missing sort fields using @SortableField.
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the infinispan-issues
mailing list