'Difference between run_as_user vs default_impersonation in airflow

I need some clarification on the configuration of run_as_user vs default_impersonation in airflow. When is one needed vs the other? If I don't specify both, what will happen?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source