Skip to content

Commit b3cc7ff

Browse files
committed
Fix HQL
1 parent 60d21d0 commit b3cc7ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hive-workflow/insert_table.hql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
INSERT INTO TABLE top_cool AS
2-
SELECT r.business_id, name, SUM(cool) AS coolness, '$date' as `date`
1+
INSERT INTO TABLE top_cool
2+
SELECT r.business_id, name, SUM(cool) AS coolness, '${date}' as `date`
33
FROM review r JOIN business b
44
ON (r.business_id = b.business_id)
55
WHERE categories LIKE '%Restaurants%'
6-
AND `date` = '$date'
6+
AND `date` = '${date}'
77
GROUP BY r.business_id, name
88
ORDER BY coolness DESC
99
LIMIT 10

0 commit comments

Comments
 (0)