I have a query in impala that needs to have a list of distinct values from another query. I have tried:
SELECT col_1, col2 FROM TABLE_1 WHERE col_1 IN (SELECT