SQL EXISTS and exists-based JOIN

60 views
Skip to first unread message

annda...@gmail.com

unread,
Dec 5, 2018, 11:59:07 AM12/5/18
to cqengine-discuss
Hi, I saw an old post and example that demonstrate how the library supports exists-based JOIN using CQN syntax.  
When specifying the join via SQL WHERE EXISTS, I get the following error inside the SQLParser: 
Request was not successful: Failed to parse query at line 1:30: extraneous input 'EXISTS' expecting {'(', K_NOT, IDENTIFIER, STRING_LITERAL}

Does the SQLParser not support any join operation?

Thanks,
Ann



Niall Gallagher

unread,
Dec 5, 2018, 4:56:19 PM12/5/18
to cqengine...@googlegroups.com
Neither the CQN nor the SQL dialects support joins actually.

To do JOINs you will need to use the programmatic API because each IndexedCollection is not aware of other IndexedCollections, so the only way to combine them in a query is via the programmatic API.


--
-- You received this message because you are subscribed to the "cqengine-discuss" group.
http://groups.google.com/group/cqengine-discuss
---
You received this message because you are subscribed to the Google Groups "cqengine-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cqengine-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

annda...@gmail.com

unread,
Dec 5, 2018, 5:51:08 PM12/5/18
to cqengine-discuss
Thanks for confirming Niall!
Reply all
Reply to author
Forward
0 new messages