-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1032 move gcc puller tables to airflow variable #1035
1032 move gcc puller tables to airflow variable #1035
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make the mapped task's name as the layer's name? for refreshing the materialized view, I'm thinking we could use a trigger function on the table instead 🤔
dags/gcc_layers_pull.py
Outdated
agg_sql = layer[1].get("agg") | ||
if agg_sql is not None: | ||
with conn.cursor() as cur: | ||
print(agg_sql) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this for logging purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I'll remove this, it was for testing (instead of execute).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reminding me that morbius's airflow version doesn't have mapped tasks naming yet :meow_headache: This looks good! refreshing mat view as a tasks as good as well.
New issue to track the mapped task names: #1043 |
What this pull request accomplishes:
Issue(s) this solves:
What, in particular, needs to reviewed:
What needs to be done by a sysadmin after this PR is merged