You are looking for like
, not =
:
SELECT k.keyword, t.text
FROM keywords k JOIN
tweets t
ON t.text like CONCAT('%', k.keyword, '%')
WHERE k.title = '3 Days to Kill';
EDIT:
I was not aware that HiveQL limited like
to only wildcards at the beginning or end. One option is rlike
. Another is instr()
:
SELECT k.keyword, t.text
FROM keywords k JOIN
tweets t
ON instr(t.text, k.keyword) > 0
WHERE k.title = '3 Days to Kill';