You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constquery=Postgres.helpers.insert(queue,ecommTable);db.query(query,queue)// <-- `queue` not needed and can cause problems.
queue was already used for Postgres.helpers.insert (ref) so query is already a pure string. However it may contain dollar signs so sending queue (again) to db.query can cause errors.
Just remove ", queue".
The text was updated successfully, but these errors were encountered:
The bug is here: https://github.com/heroku-examples/analytics-with-kafka-redshift-metabase/blob/master/redshift_batch/index.js#L35
2nd line below:
queue
was already used forPostgres.helpers.insert
(ref) soquery
is already a pure string. However it may contain dollar signs so sendingqueue
(again) todb.query
can cause errors.Just remove "
, queue
".The text was updated successfully, but these errors were encountered: