-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
Fix PythonOperator DAG error when DAG has hyphen in name #42902
Fix PythonOperator DAG error when DAG has hyphen in name #42902
Conversation
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https:/apache/airflow/blob/main/contributing-docs/README.rst)
|
question: I'm wondering if only hyphen character could be causing this issue. Do we have a more general way to prevent this bug from happening? |
If we directly hash the original module name, it will definitely work. |
04d716a
to
c1d99a9
Compare
c1d99a9
to
2364a47
Compare
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.
Left on nitpick. I think we're really close to merge.
2364a47
to
8331beb
Compare
8331beb
to
0cc9dd4
Compare
Looks good to me. Will merge it once CI pass |
0cc9dd4
to
a7eab44
Compare
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
@jason810496 congrate on your first PR 🙂 I think this can be back ported to 2.10.x. Could you please open a PR based on branch |
closes: #42796
After reproducing the issue, I found that the generated DAG file looks like this:
Replace the hyphen with dash in original module name to solve this issue.