[infinispan-issues] [JBoss JIRA] (ISPN-8584) Failed to parse hybrid query
Gustavo Fernandes (JIRA)
issues at jboss.org
Tue Dec 5 05:23:00 EST 2017
[ https://issues.jboss.org/browse/ISPN-8584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13497289#comment-13497289 ]
Gustavo Fernandes commented on ISPN-8584:
-----------------------------------------
[~anistor] I am not sure if this is a bug or if it's a feature request :)
> Failed to parse hybrid query
> ----------------------------
>
> Key: ISPN-8584
> URL: https://issues.jboss.org/browse/ISPN-8584
> Project: Infinispan
> Issue Type: Bug
> Components: Embedded Querying
> Affects Versions: 9.2.0.Beta1
> Reporter: Gustavo Fernandes
> Assignee: Adrian Nistor
>
> My Entity
> {code:java}
> @Indexed
> public class Person implements Serializable, ExternalPojo {
> @Field(store = Store.YES)
> private String name;
> private String nonIndexedField;
> . . .
> }
> {code}
> The two queries below work fine:
> {{FROM Person p WHERE p.name : 'na*'}}
> {{FROM Person p WHERE p.nonIndexedField like 'na%'}}
> But when mixing predicates it fails:
> {{FROM Person WHERE name : 'na*' and nonIndexedField like 'na%'}}
> {noformat}
> java.lang.IllegalStateException: Unexpected condition type (FullTextTermExpr): PROP(name):'na*'
> at org.infinispan.objectfilter.impl.predicateindex.be.BETreeMaker.makePredicateNode(BETreeMaker.java:134)
> at org.infinispan.objectfilter.impl.predicateindex.be.BETreeMaker.preorderTraversal(BETreeMaker.java:69)
> at org.infinispan.objectfilter.impl.predicateindex.be.BETreeMaker.makeBooleanOperatorNode(BETreeMaker.java:152)
> at org.infinispan.objectfilter.impl.predicateindex.be.BETreeMaker.preorderTraversal(BETreeMaker.java:73)
> at org.infinispan.objectfilter.impl.predicateindex.be.BETreeMaker.make(BETreeMaker.java:53)
> at org.infinispan.objectfilter.impl.ObjectFilterImpl.subscribe(ObjectFilterImpl.java:138)
> at org.infinispan.objectfilter.impl.ObjectFilterImpl.<init>(ObjectFilterImpl.java:116)
> at org.infinispan.objectfilter.impl.BaseMatcher.getObjectFilter(BaseMatcher.java:154)
> at org.infinispan.query.dsl.embedded.impl.QueryCache.lambda$get$ab3121d1$1(QueryCache.java:78)
> at org.infinispan.compat.FunctionMapper.apply(FunctionMapper.java:40)
> at org.infinispan.commands.write.ComputeIfAbsentCommand.perform(ComputeIfAbsentCommand.java:103)
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the infinispan-issues
mailing list