Skip to content

Commit

Permalink
[AIRFLOW-XXXX] Fix upsert operator in BQ example DAG (#7666)
Browse files Browse the repository at this point in the history
  • Loading branch information
turbaszek committed Mar 9, 2020
1 parent b39468d commit faf0df4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
Example Airflow DAG for Google BigQuery service.
"""
import os
import time
from urllib.parse import urlparse

from airflow import models
Expand Down Expand Up @@ -256,9 +257,9 @@
update_table = BigQueryUpsertTableOperator(
task_id="update_table", dataset_id=DATASET_NAME, table_resource={
"tableReference": {
"tableId": "test-table-id"
"tableId": "test_table_id"
},
"expirationTime": 12345678
"expirationTime": (int(time.time()) + 300) * 1000
}
)

Expand Down

0 comments on commit faf0df4

Please sign in to comment.