[infinispan-issues] [JBoss JIRA] (ISPN-8564) Cannot select inner entities in Ickle
Adrian Nistor (Jira)
issues at jboss.org
Wed Nov 7 10:45:05 EST 2018
[ https://issues.jboss.org/browse/ISPN-8564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13658042#comment-13658042 ]
Adrian Nistor commented on ISPN-8564:
-------------------------------------
The first query "SELECT p.child FROM Parent p" is wrong, so it's natural that it fails with "org.infinispan.objectfilter.ParsingException: ISPN028503: Property child can not be selected from type Parent since it is an embedded entity."
The second query, "SELECT p.child.name FROM Parent p" , is correct and it works. A second variation of it ""SELECT child.name FROM Parent" does not work. So I think the bug was closed by mistake. The PR I made was only supposed to add a test for it.
> Cannot select inner entities in Ickle
> -------------------------------------
>
> Key: ISPN-8564
> URL: https://issues.jboss.org/browse/ISPN-8564
> Project: Infinispan
> Issue Type: Bug
> Components: Embedded Querying, Remote Querying
> Affects Versions: 9.0.0.Final
> Reporter: Gustavo Fernandes
> Assignee: Adrian Nistor
> Priority: Major
> Fix For: 9.4.0.Final
>
>
> Consider a proto mapping:
> {code}
> message Parent {
> optional Child child;
> }
> message Child {
> optional string name = 1;
> }
> {code}
> It is not possible to select any of the Child attributes in the query. The following queries fail:
> {{SELECT p.child FROM Parent p}}
> Fails with ISPN028503
> {{SELECT p.child.name FROM Parent p}}
> Fails with ISPN028502: Unknown alias 'child'
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the infinispan-issues
mailing list