You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Jason Huynh (JIRA)" <ji...@apache.org> on 2018/04/20 18:38:00 UTC

[jira] [Resolved] (GEODE-3688) Query engine cannot compare int to long

     [ https://issues.apache.org/jira/browse/GEODE-3688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Huynh resolved GEODE-3688.
--------------------------------
    Resolution: Cannot Reproduce

Will resolve the issue for now as I was unable to reproduce the problem.  

> Query engine cannot compare int to long
> ---------------------------------------
>
>                 Key: GEODE-3688
>                 URL: https://issues.apache.org/jira/browse/GEODE-3688
>             Project: Geode
>          Issue Type: Bug
>          Components: querying
>            Reporter: Swapnil Bawaskar
>            Priority: Major
>
> I created an object with a long field:
> {noformat}
> public class Customer implements Serializable {
>   private long id;
>   private String name;
>   private String address;
>   private List<Account> accounts;
> ...
> }
> {noformat}
> and inserted 10 objects (with id 0 to 9) but the simple query to get customer with id=9 did not give any results
> {noformat}
> gfsh>query --query=" select c.name from /customer c where c.id=9"
> Result : true
> Limit  : 100
> Rows   : 0
> {noformat}
> I then changed the domain object to make id an {{int}} type after which the query worked:
> {noformat}
> gfsh>query --query=" select c.name from /customer c where c.id=9"
> Result : true
> Limit  : 100
> Rows   : 1
> Result
> ----------
> Customer_9
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)