Skip to content
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

bugfix description should be optional for openlineage integration with AthenaOperator #43576

Merged
merged 7 commits into from
Nov 6, 2024

Conversation

Udbv
Copy link
Contributor

@Udbv Udbv commented Nov 1, 2024

Comments are optional for athena table columns. This change fixes openlineage behavior for AthenaOperator.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added area:providers provider:amazon AWS/Amazon - related issues labels Nov 1, 2024
@Udbv
Copy link
Contributor Author

Udbv commented Nov 1, 2024

@eladkal @o-nikolas pls review, linter fixed

Copy link
Contributor

@o-nikolas o-nikolas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a test that should be added to ensure no regression again? I haven't touched the openlineage stuff much so I'm not sure what the testing is like

@Udbv
Copy link
Contributor Author

Udbv commented Nov 2, 2024

@o-nikolas sorry, i am not able to write proper test for this, i’m not aware of how to write tests for airflow operators 😔. I could only provide queries for tests.

@potiuk
Copy link
Member

potiuk commented Nov 2, 2024

Just look at the other tests implemented and extend them appropriately. They are pretty logical:

providers/tests/amazon/aws/operators/test_athena.py

@eladkal eladkal changed the title Fix AthenaOperator openlineage bugfix description should be optional for openlineage integration with AthenaOperator Nov 6, 2024
@eladkal eladkal requested a review from mobuchowski November 6, 2024 08:00
@mobuchowski mobuchowski merged commit 469dd75 into apache:main Nov 6, 2024
56 checks passed
ellisms pushed a commit to ellisms/airflow that referenced this pull request Nov 13, 2024
…h `AthenaOperator` (apache#43576)

* Comments are optional for athena table columns. This change fixes openlineage behavior for AthenaOperator.

* Fix linter

* Fix linter v2 and just revert changes for description

* Fix athena metadata - comments to fields are optional.

* Fix expected mock result

---------

Co-authored-by: Bohdan Udovenko <[email protected]>
@Udbv Udbv deleted the hotfix/athena_openlineage branch November 19, 2024 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:amazon AWS/Amazon - related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants