dolfinus opened a new issue, #61069:
URL: https://github.com/apache/airflow/issues/61069
### Description
Allow users to specify Airflow tags in format like these, and treat them
line OpenLineage tuples of `(key, value, source)`:
- `["sometag:somevalue"] -> [{"key": "sometag", "value": "somevalue",
"source": "DBT"}]`
- `["sometag:somevalue:somesource"] -> [{"key": "sometag", "value":
"somevalue", "source": "somesource"}]`
### Use case/motivation
OpenLineage tag facets are tuples of `(key, value, source)`. Custom Job/Run
tags specified in OpenLineage config can be defined as either `key:value` or
`key:value:source` strings, allowing users to pass 2 or 3 components in the
same time.
This is not the case for Airflow tags - here tags are `list[str]`, and
converting them to OpenLineage tags looks like this: `["sometag"] -> [{"key":
"sometag", "value": "sometag", "source": "AIRFLOW"}]`
https://github.com/apache/airflow/blob/4e8274c3616fde8b59f633b543af3509148f2bc1/providers/openlineage/src/airflow/providers/openlineage/plugins/adapter.py#L598-L613
### Related issues
https://github.com/OpenLineage/OpenLineage/issues/4281
### Are you willing to submit a PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]