Skip to content

Commit f0ac195

Browse files
committed
BigQuery Web: Fix upsert limit in commit_table procedure (Close #75)
1 parent 9312625 commit f0ac195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: web/v1/bigquery/sql-runner/sql/standard/00-setup/01-main/01-functions-and-procedures.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ BEGIN
105105

106106
-- Get lower limit
107107
EXECUTE IMMEDIATE
108-
format("SELECT TIMESTAMP_SUB(MIN(%s), INTERVAL {{or .upsert_lookback_days 30}} DAY) FROM %s", partitionKey, TARGET_PATH) INTO LOWER_LIMIT;
108+
format("SELECT TIMESTAMP_SUB(MIN(%s), INTERVAL {{or .upsert_lookback_days 30}} DAY) FROM %s", partitionKey, SOURCE_PATH) INTO LOWER_LIMIT;
109109

110110
-- Perform DELETE <> INSERT transaction
111111
BEGIN

0 commit comments

Comments
 (0)