If I call #to_sql on the query, I get something equivalent to this (I changed the Arel to use valid model names locally and have changed the table and column names here and removed the quotes to keep the same format as above):
SELECT * FROM a WHERE (SELECT b.a_id FROM b WHERE b.c_id = 1)
Is this because Arel doesn't support NOT IN conditions or is it a problem in scuttle-rb?
Hey @jcaudle I think this is because scuttle-rb (or actually scuttle-java) doesn't currently handle NOT IN clauses. I'll take a look. Thanks for the bug report!
If I provide scuttle with the following query:
I am given the following Arel query:
If I call
#to_sql
on the query, I get something equivalent to this (I changed the Arel to use valid model names locally and have changed the table and column names here and removed the quotes to keep the same format as above):Is this because Arel doesn't support
NOT IN
conditions or is it a problem inscuttle-rb
?