Skip to content

Fix/update views#115

Merged
lpi-tn merged 2 commits intomainfrom
Fix/update-views
Mar 9, 2026
Merged

Fix/update views#115
lpi-tn merged 2 commits intomainfrom
Fix/update-views

Conversation

@lpi-tn
Copy link
Collaborator

@lpi-tn lpi-tn commented Mar 9, 2026

This pull request makes an important change to how the materialized view name is passed and handled in the workflow for refreshing materialized views. The view name is now explicitly injected as an environment variable, and the Python script requires this variable to be set, improving clarity and error handling.

Workflow template improvements:

  • Added explicit injection of the VIEW_NAME environment variable in the Kubernetes workflow template, using the input parameter view_name. (k8s/welearn-datastack/templates/updateMaterializedViews/workflow-template-refresh-materialized-views.yaml)

Python script robustness:

  • Changed the default for VIEW_NAME in update_materialized_view.py to None instead of a specific view name, and added error handling to require the environment variable to be set. (welearn_datastack/nodes_workflow/UpdateMaterializedView/update_materialized_view.py)

@lpi-tn lpi-tn merged commit a3eb2e1 into main Mar 9, 2026
3 checks passed
@lpi-tn lpi-tn deleted the Fix/update-views branch March 9, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant