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

fix(ingestion/airflow-plugin): warning log for non-materialized iolets #10421

Conversation

dushayntAW
Copy link
Contributor

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label May 2, 2024
@dushayntAW dushayntAW changed the title fix(ingestion/airflow-plugin): warning log for non-materialized iolets Draft: fix(ingestion/airflow-plugin): warning log for non-materialized iolets May 3, 2024
@dushayntAW dushayntAW changed the title Draft: fix(ingestion/airflow-plugin): warning log for non-materialized iolets fix(ingestion/airflow-plugin): warning log for non-materialized iolets May 3, 2024
@dushayntAW dushayntAW force-pushed the fix/ING-601/logging-for-non-materialized-iotlets-in-airflow-ingestion branch from 5a18105 to efb5e6d Compare May 6, 2024 09:45
@dushayntAW dushayntAW force-pushed the fix/ING-601/logging-for-non-materialized-iotlets-in-airflow-ingestion branch from d7a9823 to c99b5b7 Compare May 7, 2024 12:31
@dushayntAW dushayntAW force-pushed the fix/ING-601/logging-for-non-materialized-iotlets-in-airflow-ingestion branch from c99b5b7 to 6fcfe44 Compare May 7, 2024 12:32
Comment on lines 431 to 432
clone_inlets=False if config and not config.materialize_iolets else True,
clone_outlets=False if config and not config.materialize_iolets else True,
Copy link
Collaborator

Choose a reason for hiding this comment

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

These could just be config.materialize_iolets in both cases. That is a boolean, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, but implemented this way as there might be a case where config is not having materialize_iolets as config is of type Optional[DatahubLineageConfig]

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please use config and not config.materialize_iolets instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is generating linter error

src/datahub_airflow_plugin/client/airflow_generator.py:431: error: Argument "clone_inlets" to "from_datajob" of "DataProcessInstance" has incompatible type "Union[DatahubLineageConfig, None, bool]"; expected "bool"  [arg-type]

used config is None or config.materialize_iolets, instead

@anshbansal anshbansal merged commit 4d20c22 into datahub-project:master May 8, 2024
51 of 52 checks passed
hsheth2 added a commit that referenced this pull request May 29, 2024
This would cause it to not be respected for data process instances.
Also fixes a bug from #10421.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingestion PR or Issue related to the ingestion of metadata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants