I have two tables with similar fields but the query is failing when I am doing a SELECT
subquery in a WHERE
clause.
SELECT foo
FROM bar
WHERE fizz IN (SELECT fizz FROM fuzz)
I deleted the error.log
from AWS but the error was something to the extent that HIVE did not recognize the SELECT
.
How do I need to restructure this query?
Thanks.
From the Subqueries in the WHERE Clause section of the HIVE Language Manual:
SELECT b.foo FROM bar b WHERE b.fizz IN (SELECT f.fizz FROM fuzz f)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With