Skip to content

Commit e73948d

Browse files
committed
Rename variables.
1 parent e466f3b commit e73948d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: bigquery_python_tutorial/insert.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ def gcs_csv_to_table(
2424
"""
2525
try:
2626
full_table_id = f"{project_id}.{dataset_id}.{table_id}"
27-
gcp_uri = f"gs://{GCP_BUCKET_NAME}/{remote_csv_path}"
27+
gcs_csv_uri = f"gs://{GCP_BUCKET_NAME}/{remote_csv_path}"
2828
job_config = LoadJobConfig(
2929
autodetect=True,
3030
skip_leading_rows=1,
3131
source_format=SourceFormat.CSV,
3232
)
3333
load_job = gbq.load_table_from_uri(
34-
gcp_uri, full_table_id, job_config=job_config
34+
gcs_csv_uri, full_table_id, job_config=job_config
3535
)
3636
LOGGER.info(f"Starting job {load_job.job_id}.")
3737
LOGGER.info(load_job.result()) # Waits for table load to complete.

0 commit comments

Comments
 (0)