You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please describe the feature you'd like to see
The python transform should also expose its content with the sourceCode facet, similar to the sql facet. Example: link [Action item: Create an issue on astro-sdk]
Include the transformation python code that the transformations were running in the OpenLineage events so that they showed up in the Info tab
For demo purposes I hard-coded both of these in a custom openlineage-airflow fork like:
^ the code would probably be cleaner as {"sourceCode": SourceCodeJobFacet("python", code)} I stuffed it in sql only due to the lack of: https://github.com/astronomer/astro/issues/2150 which is a temporary limitation
Describe the solution you'd like
Add source code facet for operators for open lineage integrations
Acceptance Criteria
Run all the operators on astro-cloud and Marquez and post screenshot of facets with sourceCode facet.
**Please describe the feature you'd like to see**
closes: #1467
The python transform should also expose its content with the sourceCode
facet, similar to the sql facet. Example:
[link](https://github.com/OpenLineage/OpenLineage/blob/3090ced24604c95716dacd667c2cff52bf438aba/integration/airflow/openlineage/airflow/extractors/python_extractor.py#L31)
[Action item: Create an issue on astro-sdk]
Include the transformation python code that the transformations were
running in the OpenLineage events so that they showed up in the Info tab
For demo purposes I hard-coded both of these in a custom
openlineage-airflow fork like:
```
code = inspect.getsource(task.python_callable)
job_facet = {"sql": SqlJobFacet(query=code), "sourceCodeLocation": SourceCodeLocationJobFacet("git", "https://github.com/astronomer/astro-days-chicago/blob/9cca4e166d73106e903f3d9f32af334d7b5560a3/dags/airflow_ecosystem.py")}
```
^ the code would probably be cleaner as {"sourceCode":
SourceCodeJobFacet("python", code)} I stuffed it in sql only due to the
lack of: astronomer/astro#2150 which is a
temporary limitation
**Describe the solution you'd like**
- Add source code facet for operators for open lineage integrations
Currently source code facet is done for base decorator operators.
Co-authored-by: Pankaj <pankaj.singh@astronomer.io>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Please describe the feature you'd like to see
The python transform should also expose its content with the sourceCode facet, similar to the sql facet. Example: link [Action item: Create an issue on astro-sdk]
Include the transformation python code that the transformations were running in the OpenLineage events so that they showed up in the Info tab
For demo purposes I hard-coded both of these in a custom openlineage-airflow fork like:
^ the code would probably be cleaner as {"sourceCode": SourceCodeJobFacet("python", code)} I stuffed it in sql only due to the lack of: https://github.com/astronomer/astro/issues/2150 which is a temporary limitation
Describe the solution you'd like
Acceptance Criteria
The text was updated successfully, but these errors were encountered: