You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@metamodel.apache.org by Anandkumar Rai <An...@lntinfotech.com> on 2017/11/28 07:29:10 UTC

unable to fetch data from map type column

Hi Kasper,
Given table with column name address of type map with key {Building,street, zipcode}
Now if I search through this table like
select * from restaurants where address.building='49'
it gives no result

however if I use query
select _id,borough,address.building from restaurants where address.building='49'
it produces result.

Seems like it works only if item in where clause(address.building) is present in select item list. Can you please help why this is not working or any other way to achieve this.

Regards,
Anand Rai

[cid:4C89D4C6-C54F-4E0F-881F-2BE308F641F2]<http://www.lntinfotech.com/>
Larsen & Toubro Infotech Ltd.


RE: unable to fetch data from map type column

Posted by Anandkumar Rai <An...@lntinfotech.com>.
Thanks Kasper, from now onwards will address team for the issues I get  :-)

Hi Team,
1.    I have raised defect(METAMODEL-1173<https://issues.apache.org/jira/browse/METAMODEL-1173>) for the issue mentioned in trailing mail please check.

Thanks & Regards,
Anand Rai

[cid:4C89D4C6-C54F-4E0F-881F-2BE308F641F2]<http://www.lntinfotech.com/>
Larsen & Toubro Infotech Ltd.


From: Kasper Sørensen [mailto:i.am.kasper.sorensen@gmail.com]
Sent: Thursday, November 30, 2017 10:19 AM
To: user@metamodel.apache.org
Subject: Re: unable to fetch data from map type column

Hi Anand,

(Please don't address topics directly to me, there may be others on the mailing list with a just as good (or better) answer for you) :-)

Honestly that sounds like a bug to me too. I'll try and reproduce to dig a bit deeper.

Best regards,
Kasper

2017-11-27 23:29 GMT-08:00 Anandkumar Rai <An...@lntinfotech.com>>:
Hi Kasper,
Given table with column name address of type map with key {Building,street, zipcode}
Now if I search through this table like
select * from restaurants where address.building='49'
it gives no result

however if I use query
select _id,borough,address.building from restaurants where address.building='49'
it produces result.

Seems like it works only if item in where clause(address.building) is present in select item list. Can you please help why this is not working or any other way to achieve this.

Regards,
Anand Rai

[cid:4C89D4C6-C54F-4E0F-881F-2BE308F641F2]<http://www.lntinfotech.com/>
Larsen & Toubro Infotech Ltd.



Re: unable to fetch data from map type column

Posted by Kasper Sørensen <i....@gmail.com>.
Hi Anand,

(Please don't address topics directly to me, there may be others on the
mailing list with a just as good (or better) answer for you) :-)

Honestly that sounds like a bug to me too. I'll try and reproduce to dig a
bit deeper.

Best regards,
Kasper

2017-11-27 23:29 GMT-08:00 Anandkumar Rai <An...@lntinfotech.com>:

> Hi Kasper,
>
> Given table with column name address of type map with key
> {Building,street, zipcode}
>
> Now if I search through this table like
>
> select * from restaurants where address.building='49'
>
> it gives no result
>
>
>
> however if I use query
>
> select _id,borough,address.building from restaurants where
> address.building='49'
>
> it produces result.
>
>
>
> Seems like it works only if item in where clause(address.building) is
> present in select item list. Can you please help why this is not working or
> any other way to achieve this.
>
>
>
> *Regards,*
>
> *Anand Rai*
>
>
>
> [image: cid:4C89D4C6-C54F-4E0F-881F-2BE308F641F2]
> <http://www.lntinfotech.com/>
>
> *Larsen & Toubro Infotech Ltd**.*
>
>
>