You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by tolga <fa...@gmail.com> on 2017/03/22 14:41:53 UTC

Apache Ignite Query Entity String Array

What is the value of the field configuration (e.g. <entry key="ABC" value
"java.lang.String"/>)  if I use BinaryWriter::WriteStringArray("ABC")?

Can I use SQL IN queries with string array fields?



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Apache-Ignite-Query-Entity-String-Array-tp11368.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Apache Ignite Query Entity String Array

Posted by tolga <fa...@gmail.com>.
Thanks a lot.

On Thu, Mar 23, 2017, 11:15 AM dkarachentsev [via Apache Ignite Users] <
ml-node+s70518n11385h10@n6.nabble.com> wrote:

> Hi,
>
> You need to set value="L[java.lang.String;" and for querying you may use
> array_contains function. For example:
> ... WHERE array_contains(ABC, ?);
>
> Thanks!
>
> -Dmitry.
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-ignite-users.70518.x6.nabble.com/Apache-Ignite-Query-Entity-String-Array-tp11368p11385.html
> To unsubscribe from Apache Ignite Query Entity String Array, click here
> <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=11368&code=ZmFzZGZhc2Rhc0BnbWFpbC5jb218MTEzNjh8MTQxMDE4MDMyMQ==>
> .
> NAML
> <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Apache-Ignite-Query-Entity-String-Array-tp11368p11441.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Apache Ignite Query Entity String Array

Posted by dkarachentsev <dk...@gridgain.com>.
Hi,

You need to set value="L[java.lang.String;" and for querying you may use
array_contains function. For example: 
... WHERE array_contains(ABC, ?);

Thanks!

-Dmitry.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Apache-Ignite-Query-Entity-String-Array-tp11368p11385.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.