Skip to content

Commit

Permalink
Move the bucket var in the docs (#907)
Browse files Browse the repository at this point in the history
This will show what values can be put (specifically `gs://`) in the name
at
https://astro-sdk-python.readthedocs.io/en/stable/astro/sql/operators/export.html
  • Loading branch information
kaxil authored and utkarsharma2 committed Oct 4, 2022
1 parent 8354f4d commit 988e7ca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
from astro.files import File
from astro.sql.table import Metadata, Table

gcs_bucket = os.getenv("GCS_BUCKET", "gs://dag-authoring")

with DAG(
dag_id="example_google_bigquery_gcs_load_and_save",
schedule_interval=None,
Expand Down Expand Up @@ -53,6 +51,8 @@ def extract_top_5_movies(input_df: pd.DataFrame):
t2 = extract_top_5_movies(input_df=t1)

# [START export_example_1]
gcs_bucket = os.getenv("GCS_BUCKET", "gs://dag-authoring")

aql.export_file(
task_id="save_file_to_gcs",
input_data=t1,
Expand Down

0 comments on commit 988e7ca

Please sign in to comment.