Last active
September 19, 2022 10:00
-
-
Save tuanchris/c10dae860abd87019adf6878ee5f45ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Transform, load, and check fact data | |
create_immigration_data = BigQueryOperator( | |
task_id = 'create_immigration_data', | |
use_legacy_sql = False, | |
params = { | |
'project_id': project_id, | |
'staging_dataset': staging_dataset, | |
'dwh_dataset': dwh_dataset | |
}, | |
sql = './sql/F_IMMIGRATION_DATA.sql' | |
) | |
# Create remaining dimensions data | |
create_d_time = BigQueryOperator( | |
task_id = 'create_d_time', | |
use_legacy_sql = False, | |
params = { | |
'project_id': project_id, | |
'staging_dataset': staging_dataset, | |
'dwh_dataset': dwh_dataset | |
}, | |
sql = './sql/D_TIME.sql' | |
) | |
create_d_weather = BigQueryOperator( | |
task_id = 'create_d_weather', | |
use_legacy_sql = False, | |
params = { | |
'project_id': project_id, | |
'staging_dataset': staging_dataset, | |
'dwh_dataset': dwh_dataset | |
}, | |
sql = './sql/D_WEATHER.sql' | |
) | |
create_d_airport = BigQueryOperator( | |
task_id = 'create_d_airport', | |
use_legacy_sql = False, | |
params = { | |
'project_id': project_id, | |
'staging_dataset': staging_dataset, | |
'dwh_dataset': dwh_dataset | |
}, | |
sql = './sql/D_AIRPORT.sql' | |
) | |
create_d_city_demo = BigQueryOperator( | |
task_id = 'create_d_city_demo', | |
use_legacy_sql = False, | |
params = { | |
'project_id': project_id, | |
'staging_dataset': staging_dataset, | |
'dwh_dataset': dwh_dataset | |
}, | |
sql = './sql/D_CITY_DEMO.sql' | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment