You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metamodel.apache.org by "AnandRai (JIRA)" <ji...@apache.org> on 2017/11/28 04:43:00 UTC

[jira] [Created] (METAMODEL-1172) Allow searching list of type map in where clause

AnandRai created METAMODEL-1172:
-----------------------------------

             Summary: Allow searching list of type map in where clause
                 Key: METAMODEL-1172
                 URL: https://issues.apache.org/jira/browse/METAMODEL-1172
             Project: Apache MetaModel
          Issue Type: New Feature
    Affects Versions: 5.0.0
         Environment: Linux
            Reporter: AnandRai
             Fix For: 5.0.1


 I have schema like “_id”,"address","borough","cuisine","grades"
                Where grades is list of maps with elements like
                                [Document{{date=Fri May 14 05:30:00 IST 2021, grade=A, score=12.0}}, Document{{date=Wed Aug 13 05:30:00 IST 2025, grade=A, score=12.0}}, Document{{date=Sun Apr 04 05:30:00 IST 2027, grade=A, score=12.0}}] 

Now if I execute query like DataSet ds = mongo.executeQuery("select * from restaurants where grades[0].grade='A'"); 
       
Its failing at line 427 of MongoDbContext class final Column column = item.getSelectItem().getColumn();




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)