Skip to content

Add missing unit tests for the apache.hive macros plugin - #72447

Open
wtwyford wants to merge 5 commits into
apache:mainfrom
wtwyford:testing/unit-tests-for-hive-macros-plugin
Open

Add missing unit tests for the apache.hive macros plugin#72447
wtwyford wants to merge 5 commits into
apache:mainfrom
wtwyford:testing/unit-tests-for-hive-macros-plugin

Conversation

@wtwyford

@wtwyford wtwyford commented Sep 2, 2026

Copy link
Copy Markdown

This PR resolves #72267

Added unit testing addressing the conditions specified by the corresponding issue, and removed the file from OVERLOOKED_TESTS

Run these tests using: breeze testing providers-tests providers/apache/hive/tests/unit/apache/hive/plugins/test_hive.py


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

…pache#70945)

The condition compared a Pydantic model class against a dict keyed by
model name, so it never held. It happened to be load-bearing: it forced
the field list to be rebuilt on every visit, which is what kept
datamodels shared by several operations (ConnectionBody, VariableBody,
BackfillPostBody) from accumulating duplicate entries. Correcting the
comparison to match the key type would have silently introduced those
duplicates, so the guard is dropped in favour of the unconditional reset
it was already performing.
@boring-cyborg

boring-cyborg Bot commented Sep 2, 2026

Copy link
Copy Markdown

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
Here are some useful points:

  • Pay attention to the quality of your code (ruff, mypy and type annotations). Our prek-hooks will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example Dag that shows how users should use it.
  • Consider using Breeze environment for testing locally, it's a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
  • Always keep your Pull Requests rebased, otherwise your build might fail due to changes not related to your commits.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: dev@airflow.apache.org
    Slack: https://s.apache.org/airflow-slack

@wtwyford

wtwyford commented Sep 2, 2026

Copy link
Copy Markdown
Author

@rawwar could you give this a quick review?

@rawwar
rawwar self-requested a review September 2, 2026 17:18
Comment thread providers/apache/hive/tests/unit/apache/hive/plugins/test_hive.py Outdated
@wtwyford
wtwyford requested a review from RNHTTR September 2, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add missing tests for the apache.hive macros plugin

3 participants